我有两个表,每个表都有相同的列。我们称之为颜色。如何比较两者以显示表 B 中但表 A 中没有的独特颜色?
最佳答案
select b.color
from tbl1 b
where not exists (select * from tbl2 a where b.color=a.color)
关于sql - 比较不同表中的 2 列,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13214317/