-
-
Save NKid/5d28ae4588d020713c8b to your computer and use it in GitHub Desktop.
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
SELECT * FROM Members --(xxx 個資料列受到影響) | |
--PRINT 'NO ROWS AFFECTED' | |
SELECT @@ROWCOUNT '@@ROWCOUNT' | |
--如果註解掉PRINT,那麼@@ROWCOUNT會輸出xxx | |
--反之,@@ROWCOUNT會輸出0 | |
--IF、PRINT...都會影響@@ROWCOUNT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment