Skip to content

Instantly share code, notes, and snippets.

@Fhernd
Last active August 29, 2015 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Fhernd/14028e0f1766f5ceeff7 to your computer and use it in GitHub Desktop.
Save Fhernd/14028e0f1766f5ceeff7 to your computer and use it in GitHub Desktop.
Uso de BREAK y CONTINUE.
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