Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用休眠,我只想显示表 A 中那些在 Bie 表中没有引用的记录表 A 有主键 jobId,它是表 B 中的外键。现在我只想显示那些不是的 id 值见表 B。
select a from A a where a.jobId not in (select b.jobId from B b)