Pergunta

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.

Foi útil?

Solução

SELECT columnName FROM tableName WHERE columnname LIKE '%string%'
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top