Advertisement
Fhernd

Receta_TSQL-2.6_Ej_2.sql

Jul 7th, 2015
1,145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
T-SQL 0.36 KB | None | 0 0
  1. DECLARE @contador INT
  2. SET @contador = 0
  3. WHILE @contador <> 19
  4.    BEGIN
  5.       SET @contador = @contador + 1
  6.       IF @contador >= 4 AND @contador <= 9
  7.         BEGIN
  8.             CONTINUE
  9.             PRINT 'No Counter Here'
  10.         END
  11.       ELSE IF @contador > 13
  12.         BREAK
  13.       ELSE
  14.          PRINT 'The counter : ' + CAST(@contador AS CHAR)
  15.    END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement