链表查询

浏览:1401 发布日期:2018/03/26 分类:求助交流 关键字: 链表查询,tp5
关于链表查询,如何查询一个表中lid = 0 or = uid 且 两者的time 都要>last_time。
$db()->order('notice_time desc')->where('notice_lid=0 AND notice_time>' . $last_time)->whereOr('notice_lid =' . $uid . 'AND notice_time>' . $last_time)->select();
报错:Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'notice_time>1522035979 ) ORDER BY notice_time desc' at line 1
最佳答案
评论( 相关
后面还有条评论,点击查看>>