当前位置:编程学习 > JAVA >>

这条hql语句为什么不能排序?求解

select count(democracygradeProjectId) from PapDemocracygradeProject where semesterId= semesterId  order by optDate desc;
这条hql语句为什么不能排序?求解
--------------------编程问答-------------------- 查询的结果总共就一条记录,排序不排序有什么区别? --------------------编程问答-------------------- 一个count怎么排序? --------------------编程问答-------------------- 一个结果怎么排序 --------------------编程问答--------------------   count       order by --------------------编程问答-------------------- 一个结果怎么排序 --------------------编程问答-------------------- --------------------编程问答-------------------- 你用count,并且还用where把条件定死了,只返回了一条记录,排序不排序有什么区别? --------------------编程问答--------------------
引用 7 楼  的回复:
你用count,并且还用where把条件定死了,只返回了一条记录,排序不排序有什么区别?

好像与where没关系吧,count原因! --------------------编程问答-------------------- 排序是多余
补充:Java ,  Web 开发
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,