0
什麼是hibernate查詢下面的sql?休眠查詢select * from表where where id in(query)
select * from DB_GROUP
where DB_GROUP_ID in
(select DB_GROUP_ID from DB_GROUP_ORG where DB_ORG_ID='306132');
什麼是hibernate查詢下面的sql?休眠查詢select * from表where where id in(query)
select * from DB_GROUP
where DB_GROUP_ID in
(select DB_GROUP_ID from DB_GROUP_ORG where DB_ORG_ID='306132');
你需要指定實體列名,而使用這個query.I使用您在表中所付出的相同名稱
select model from DB_GROUP model where model.DB_GROUP_ID
in
(select model2.DB_GROUP_ID from DB_GROUP_ORG model2 where model2.DB_ORG_ID='306132');