MySQL error fuzzy query report 1064

When the project herdsman inquiry found that the problem can not be executed SQL

Ie select * from table where params list% test% reported 1064 syntax error

Finally we found the problem but forget to add the single quotes

The correct syntax:

  select * from table where params list '%test%'

 

Guess you like

Origin www.cnblogs.com/xujuntao/p/11028024.html