TP5里面如何查询一个字段比另一个字段大的合集?

浏览:2355 发布日期:2018/01/05 分类:求助交流 关键字: mysql语句
RT,这两个字段都是整形的时间戳数字,然后我使用下面方法:
$maps['lastime'] = ['exp', "lastime > respontime"];

结果:
Syntax error or access violation: 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 'lastime > respontime ) ORDER BY id desc LIMIT 6000' at line 1[/var/……/thinkphp/library/think/db/Connection.php:388]
最佳答案
评论( 相关
后面还有条评论,点击查看>>