select A.ID from A left join B on A.ID=B.ID where B.ID is null
1.我用以上语句搜出了和 B 表未关联的 A.ID
2.请问我该如何写 sql 才能直接删除这些 A.ID ,既一条语句删除查出来未关联的 ID