Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
14
Task/Loops-Continue/Transact-SQL/loops-continue.sql
Normal file
14
Task/Loops-Continue/Transact-SQL/loops-continue.sql
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
DECLARE @i INT = 0;
|
||||
DECLARE @str VarChar(40) = '';
|
||||
WHILE @i<10
|
||||
BEGIN
|
||||
SET @i = @i + 1;
|
||||
SET @str = @str + CONVERT(varchar(2),@i);
|
||||
IF @i % 5 = 0
|
||||
BEGIN
|
||||
PRINT @str;
|
||||
SET @str =''
|
||||
CONTINUE;
|
||||
END
|
||||
SET @str = @str +', ';
|
||||
END;
|
||||
Loading…
Add table
Add a link
Reference in a new issue