Question

What is the syntax in SQLite to get all values which contains given string?

I tried: SELECT columnName FROM tableName WHERE LOCATE(string,columnName)!=0; but it didn't work.

Was it helpful?

Solution

SELECT columnName FROM tableName WHERE columnname LIKE '%string%'
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top