Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有两个具有相同字段的表。我想比较其中一个字段并在第 3 和第 4 个表中移动匹配和不匹配的值。谁能帮我这个?
假设表 A 和表 B。
insert into table C values(select colA from A,B where colA=colB) insert into table D values(select colA from A,B where colA!=colB)