oracle diff: how to compare two tables?

后端 未结 12 1970
忘了有多久
忘了有多久 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:59

    You can try using set operations: MINUS and INTERSECT

    See here for more details:
    O'Reilly - Mastering Oracle SQL - Chapter 7 - Set Operations

提交回复
热议问题