utplsql

utPLSQL: How can i compare two tables?

与世无争的帅哥 提交于 2019-12-20 07:18:27
问题 Lets say i have table 1 and table 2. Table 2 is the updated version of table one. It can have same or updated structure, columns and data. I want to compare those two tables. 回答1: => Sample Query to compare the structure of tables (add columns like datatype and other comparison parameters as you need ) here using all_tab_cols: SELECT t1.table_name ,t2.table_name ,t1.column_name ,t2.column_name FROM ( SELECT * FROM all_tab_cols WHERE table_name = 'TEMP1' ) t1 FULL OUTER JOIN ( SELECT * FROM