Created
December 10, 2009 19:46
-
-
Save ryanb/253602 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
/* Given these SQL commands */ | |
update books set author="Bob" where id=1; | |
update books set author="John" where id=2; | |
update books set author="Bob" where id=3; |
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
/* I want this output (and it should work with more complex scenarios) */ | |
update books set author="Bob" where id in (1, 3); | |
update books set author="John" where id=2; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment