------解决方案-------------------- 直接把查询语句写在后面不就行了?
select * from Table A where A.id in ( select id from Table B) ------解决方案-------------------- select * from tablea a where exists(select 1 from tableb b where b.id = a.id);尽量不要使用in ------解决方案--------------------
-难道这样写不对?
select * from Table A where A.id in
<iterate conjunction="," open="(" close=")" >
#value[]#
</iterate>