Answers for "sql where contains a word"

SQL
14

sql where contains

SELECT * FROM mytable
WHERE column1 LIKE '%word1%'
   OR column1 LIKE '%word2%'
   OR column1 LIKE '%word3%'
Posted by: Guest on January-22-2020
0

sql where contains part of string

-- To find an exact string
SELECT * FROM [table] WHERE [field] LIKE '%stringtosearchfor%'.
Posted by: Guest on October-14-2020

Code answers related to "SQL"

Browse Popular Code Answers by Language