Question

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

Was it helpful?

Solution

try that:

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

DEMO

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top