Select * from Em where (Senior='' or Junior='self') and (Senior='self' or Junior='') Order by workdate desc Limit 10
在查询语句中同时使用Order by desc降序排列 与 Limit n ,提示SQL查询语句末尾有语法错误。
...全文
12983打赏收藏
在SQL查询语句中Order by 与Limit n结合使用的问题
Select * from Em where (Senior='' or Junior='self') and (Senior='self' or Junior='') Order by workdate desc Limit 10 在查询语句中同时使用Order by desc降序排列 与 Limit n ,提示SQL查询语句末尾有语法错误。