Created
May 16, 2014 13:40
-
-
Save csdear/893924647578d9d748ca to your computer and use it in GitHub Desktop.
SQL LIKE Pattern and Wildcards
A. Table Reference
B. Where COLUMN NAME
C. LIKE '20%' . Percent sign is the wildcard. E.g., '%20', '20%', '%camry%
D. OR column name. If you want to search for the pattern in additional columns.
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 seo_templates | |
WHERE main_copy LIKE '20%' | |
OR page_title LIKE '20%' | |
*** |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment