这条hql语句为什么不能排序?求解
select count(democracygradeProjectId) from PapDemocracygradeProject where semesterId= semesterId order by optDate desc;这条hql语句为什么不能排序?求解
--------------------编程问答-------------------- 查询的结果总共就一条记录,排序不排序有什么区别? --------------------编程问答-------------------- 一个count怎么排序? --------------------编程问答-------------------- 一个结果怎么排序 --------------------编程问答-------------------- count order by --------------------编程问答-------------------- 一个结果怎么排序 --------------------编程问答-------------------- --------------------编程问答-------------------- 你用count,并且还用where把条件定死了,只返回了一条记录,排序不排序有什么区别? --------------------编程问答--------------------
好像与where没关系吧,count原因! --------------------编程问答-------------------- 排序是多余
补充:Java , Web 开发