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.
同じフィールドを持つ2つのテーブルがあります。フィールドの 1 つを比較し、一致した値と一致しない値を 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)