oracle查找于dblink远程数据库表不一致并创建补齐表及数据

 select 'create table hfmis.' || table_name || ' as select * from ' || table_name || '@link1;' from 
 (select table_name from user_tables@link1
				minus
	select table_name from all_tables where owner = 'HFMIS')

 

 

你可能感兴趣的:(oracle)