sql 单表/多表查询去除重复记录单表distinct多表group by
select h from Hytxbz as h,Tgbzk as t where h.hytxbzid=t.hytxbzid and t.bztgid=:bztgid
hql 多表查询
原文:http://www.cnblogs.com/fengyifengceaser/p/6266187.html