sql contains a code example
Example 1: sql where contains
SELECT * FROM mytable
WHERE column1 LIKE '%word1%'
OR column1 LIKE '%word2%'
OR column1 LIKE '%word3%'
Example 2: sql table contains
IF (SELECT COUNT(*) FROM foos WHERE bar = 'baz') > 0