Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 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