check if a column does not contain a value in sql if statement code example Example: sql not contains SELECT * FROM tbl WHERE tbl.col NOT LIKE '%text%';