having does not contain in sql query code example Example: sql not contains SELECT * FROM tbl WHERE tbl.col NOT LIKE '%text%';