programming-examples/sql/WildcardSpecialOperators/Write a SQL statement to find those rows from the table testtable which contain the escape character underscore ( _ ) in its column 'col1'.sql

6 lines
213 B
MySQL
Raw Normal View History

2019-11-18 14:05:53 +01:00
/*Write a SQL statement to find those rows from the table testtable which
contain the escape character underscore ( _ ) in its column 'col1'.*/
SELECT *
FROM testtable
WHERE coll LIKE '%/_%' ESCAPE '/';