2012年4月28日
摘要: 今天徒弟用到了一句复杂的查询语句。。。。结果执行报错,但是在SQL中执行没有问题,于是来求助我了。。。语句的HQL/SQL格式如下:select count(1) ,cxltype,sum(dzsje),sum(iperson)from (select xl.cxltype,g.iperson,(select sum(y.dzsje) from Ysklist as y where y.cykpid = g.cregno) as dzsje from Guestreg as g,Xl as xl where g.xluuid = xl.uuid ) as t where……group by t 阅读全文
posted @ 2012-04-28 16:06 星^_^風 阅读(329) 评论(0) 推荐(0) 编辑