MySQL模糊查询报1064错误

进行项目牧户查询时,发现SQL无法执行的问题

即select * from table where params list %test% 报1064语法错误

最后发现只是忘记添加单引号的问题

正确语法:

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

 

posted @ 2019-06-15 16:38  Covenant  阅读(1990)  评论(0编辑  收藏  举报

ヾ(≧O≦)〃点我返回顶部嗷~