Skip to content

Instantly share code, notes, and snippets.

@csdear
Created May 16, 2014 13:40
Show Gist options
  • Save csdear/893924647578d9d748ca to your computer and use it in GitHub Desktop.
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.
***
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