码迷,mamicode.com
首页 > 其他好文 > 详细

hql 多表查询

时间:2017-01-09 19:59:07      阅读:130      评论:0      收藏:0      [点我收藏+]

标签:group   重复记录   单表   重复   where   多表   from   rom   nbsp   

sql 单表/多表查询去除重复记录
单表distinct
多表group by

select h from Hytxbz as h,Tgbzk as t where h.hytxbzid=t.hytxbzid and t.bztgid=:bztgid

hql 多表查询

标签:group   重复记录   单表   重复   where   多表   from   rom   nbsp   

原文地址:http://www.cnblogs.com/fengyifengceaser/p/6266187.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!