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.

Était-ce utile?

La solution

SELECT columnName FROM tableName WHERE columnname LIKE '%string%'
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top