Here are 3 different ways to perform a DB select when you want to specify two or more values for a field. 1. Use th OR operator PLAIN TEXT SQL: SELECT * FROM people WHERE (first_name = 'pete' OR first_name = 'paul'); 2. Use a Regular Expression PLAIN TEXT SQL: SELECT * FROM people WHERE [...]
Popular Posts
- Vim: Search and Replace, Insert new line 10 comment(s)
- PHP: Get First Index in Associative Array 7 comment(s)
- PHP: Swap Variables One Liner 5 comment(s)
- PHP: XOR swap 3 comment(s)
- MP3 downloads using Google 0 comment(s)
- Away with Applications: The Death of Desktop 0 comment(s)
- wget page source and all related assets 0 comment(s)
-
Recent Posts
Recent Comments