contains sql column code example Example: sql table contains IF (SELECT COUNT(*) FROM foos WHERE bar = 'baz') > 0