更新时间:2022-12-10 17:04:31
您可以使用 NOT EXISTS
来查找和删除这些项目:
You can use NOT EXISTS
to find and delete those items:
delete from document d
where not exists (select 1 from AppRequiredDocuments a where a.docid = d.id);
and not exists (select 1 from AppDocuments a where a.docid = d.id);