Pergunta

I cannot get the LIKE to work in mysql on a WHERE clause

This what I need to find in a string "blog_optin";s:1:"1";

Here are the things I tried:

WHERE meta_value LIKE "%\"blog_optin\";s:1:\"1\";%"

WHERE meta_value LIKE %"\"blog_optin\";s:1:\"1\";"%

Foi útil?

Solução

try that:

 WHERE meta_value LIKE '%"blog_optin";s:1:"1";%'

DEMO

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top