Last active
December 15, 2015 19:40
-
-
Save csdear/54e6d8811ce6369ad5c5 to your computer and use it in GitHub Desktop.
Select Multiple ~ CherryPick ~
This file contains hidden or 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
| --Can do this the long way with OR | |
| SELECT * FROM apples | |
| WHERE appleID = '5544' OR appleID = '5978'OR appleID = '1586' OR appleID = '4592' | |
| --more efficient, using the IN keyword. | |
| select * from modem where sn in ('1234', '4564', '4568', '1239') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment