xiangzi7758258
2016-03-10 06:49sql语句转hibernate hql语句
sql语句为select * from (select location_id,region_code,county_name,count(region_code) as countKKou from mon_location where longitude !=0.0 and region_code in ('370901') GROUP BY region_code) as teb LEFT JOIN mon_region as r on teb.region_code = r.code ;
求hql语句
其中sql
select location_id,region_code,county_name,count(region_code) as countKKou from mon_location where longitude !=0.0 and region_code in ('370901') GROUP BY region_code
已经转化为select new com.yisa.map.domain.LocationLocation(m.location_id,count(m.region_code) as countKKou,m.region_code,m.county_name) from LocationVo as m where m.longitude !=0.0 and m.region_code in ('370901') GROUP BY m.region_code
- 点赞
- 回答
- 收藏
- 复制链接分享
0条回答
为你推荐
- hibernate sql语句参数为null时,如何处理
- hibernate
- 0个回答
- hql语句怎么写
- hibernate
- 0个回答
- hibernate hql 报错 用sql语句则正常运行
- hibernate
- 0个回答
- 关于SQL和HQL查询语句的问题
- hibernate
- 0个回答
- 帮我写一下SQL语句
- hibernate
- 0个回答
换一换