Last active
August 29, 2015 14:24
-
-
Save Fhernd/14028e0f1766f5ceeff7 to your computer and use it in GitHub Desktop.
Uso de BREAK y CONTINUE.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DECLARE @contador INT | |
SET @contador = 0 | |
WHILE @contador <> 19 | |
BEGIN | |
SET @contador = @contador + 1 | |
IF @contador >= 4 AND @contador <= 9 | |
BEGIN | |
CONTINUE | |
PRINT 'No Counter Here' | |
END | |
ELSE IF @contador > 13 | |
BREAK | |
ELSE | |
PRINT 'The counter : ' + CAST(@contador AS CHAR) | |
END |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment