以下是引用laowan001在2021-11-22 09:30:50的发言:
查相同的b1
select b1.* from b1,b2 where alltrim(b1.mc)==alltrim(b2.mc)
b1有b2没有
select * from b1 where mc not in (select mc from b2)
查相同的b1
select b1.* from b1,b2 where alltrim(b1.mc)==alltrim(b2.mc)
b1有b2没有
select * from b1 where mc not in (select mc from b2)
对于"b1有b2没有",查询没问题,但用删除就有点问题:
我用:
DELETE FROM b1 where mc in (select mc from b2)
删除的不是绝对相同的字符串。应如何写?