查询语句lock字段死活用不了,可能在去改数据库,求办法

浏览:563 发布日期:2016/12/01 分类:求助交流
在数据字段中有一个lock字段,thinkphp3.2.3要报查询语句错误。
代码:
$task=M('order_task');
$n_order=$task->where('lock=0')->select();
报错:
1064:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'lock=0 )' at line 1 [ SQL语句 ] : SELECT * FROM `order_task` WHERE ( lock=0 )
最佳答案
评论( 相关
后面还有条评论,点击查看>>