質問

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\";"%

役に立ちましたか?

解決

try that:

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

DEMO

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top