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.

有帮助吗?

解决方案

SELECT columnName FROM tableName WHERE columnname LIKE '%string%'
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top