2014-01-23 46 views

回答

3

登錄到訪問的架構和運行插入命令等兩個用戶,

INSERT INTO schema1.table_name 
    SELECT * FROM schema2.table_name; 

假設表是在這兩個模式是相同的。

3

schema1需要權限上表中SCHEMA2

connect schema2 

grant select , insert on b to schema1; 

然後

connect schema1 

insert into schema2.b select * from a; 

或者創建一個同義詞

create synonym b for schema2.b; 

insert into b select * from a; 
相關問題