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