문제

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