September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 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