Created
July 9, 2015 01:37
-
-
Save Fhernd/d0432b25ffbbaa389316 to your computer and use it in GitHub Desktop.
Uso de return.
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
-- OrtizOL - xCSw - http://ortizol.blogspot.com | |
IF NOT EXISTS | |
(SELECT ProductID | |
FROM Production.Product | |
WHERE Color = 'lightblue') | |
BEGIN | |
RETURN; | |
END; | |
SELECT ProductID As 'ID Producto' | |
FROM Production.Product | |
WHERE Color = 'lightblue'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment