ibatis中 sqlmap的查询语句可以用order by 排序吗

2025-05-14 03:03:40
推荐回答(1个)
回答1:

不是SQLMAP的问题,是SQL语句本身的问题
sql语句中order by 排序语句需要放在 where 条件语句之后。
Select语句的语法是:

select [distinct] *|column1[,column2,……]
from table1[,table2……]
[where 条件1[and|or|not 条件2……]
[group by 条件1[and|or|not 条件2……] [having 条件1[and|or|not 条件2]……]]
[order by columnA [[asc]|desc] [,columnB [asc]|desc]……]