How to verify if two tables have exactly the same data?

前端 未结 8 685
梦毁少年i
梦毁少年i 2020-12-08 10:34

Basically, we have one table (original table) and it is backed up into another table (backup table); thus the two tables have exactly the same sche

8条回答
  •  抹茶落季
    2020-12-08 11:13

    SELECT * FROM Table1
    UNION
    SELECT * FROM Table2
    

    If you get records greater than any of two tables, they don't have same data.

提交回复
热议问题