中间表c由三个主键构成,a表主键,b表主键,当前用户id,如何在@ManyMany中加入当前用户id,实现如下查询:
select * from a,b,c where a.id =c.a_id and b.id=c.b_id and c.user_id = '123'
中间表c由三个主键构成,a表主键,b表主键,当前用户id,如何在@ManyMany中加入当前用户id,实现如下查询:
select * from a,b,c where a.id =c.a_id and b.id=c.b_id and c.user_id = '123'