oracle diff: how to compare two tables?

后端 未结 12 1971
忘了有多久
忘了有多久 2021-01-31 03:22

Suppose I have two tables, t1 and t2 which are identical in layout but which may contain different data.

What\'s the best way to diff these two tables?

12条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-31 03:57

    Fast solution:

    SELECT * FROM TABLE1
    MINUS
    SELECT * FROM TABLE2
    

    No records should show...

提交回复
热议问题