场景:下拉框展示,查询出表A中的数据包含字段有(工作组)service_id ,保存后(工作组)service_id到表B
由于需求为保存后不再在列表中展示表B的工作组名
使用not int 解决
数据库为oracle
select * from A h where h.hmo_id='h1' and h.state=1 and h.service_id not in (select b.service_id from B b)
场景:下拉框展示,查询出表A中的数据包含字段有(工作组)service_id ,保存后(工作组)service_id到表B
由于需求为保存后不再在列表中展示表B的工作组名
使用not int 解决
数据库为oracle
select * from A h where h.hmo_id='h1' and h.state=1 and h.service_id not in (select b.service_id from B b)