Hibernate中如何实现如下嵌套
select count(b.hotelId) from ( select t.hotelId from HotelSendtime t group
by t.hotelId) b
我这样子写出错,不知道应该如果写?
3x
问题点数:50、回复次数:2Top
1 楼shockely(梦想的天空)回复于 2005-06-03 15:15:55 得分 50
你直接 用select count(distinct t.id) from xxx t 不就行了Top
2 楼smartlylife(a-fei)回复于 2005-06-03 15:43:34 得分 0
你这种方法是可行的,多谢了,先记着
我主要是用这样的样式来学习如何处理类似的嵌套Top




