首页新闻找找看学习计划

hql order by

0
[待解决问题]

hql:from Repair where faultDate between ? and ? order by  ? "+order;

Object[] paramList = {dateFrom,dateTo,sort};结果为什么不能排序?

 

而hql:from Repair where faultDate between ? and ? order by "+sort+" "+order;

Object[] paramList = {dateFrom,dateTo}结果就能排序

 

难道有空格,没有啊?醉了

浮生若云的主页 浮生若云 | 菜鸟二级 | 园豆:268
提问于:2015-03-30 21:44
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册