mysql limit 附近老是报错,求帮助!
select distinct from_user, realname, mobile from `testtable`
where id = '2' and storeid ='5' LIMIT (1-1)*10,10
报错信息为:
---------------------------
错误
---------------------------
SQL 执行错误 # 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 '(1-1)*10,10' at line 2
---------------------------
确定
---------------------------
求教,这个是什么原因?