2010-01-22 74 views

回答

0

哦,孩子,這是臨時表的很多。您是否看過Oracle's SQL Developer tool?它是免費的,它帶有一個遷移工作臺,可以幫助您完成旅程。

至於臨時表看來該OMWB將創建從T-SQL語句的臨時表。 Find out more

警告:我從來沒有進行過這樣的遷移,所以我不能保證它。但有5000個腳本遷移它必須值得您一段時間來評估它。

0

Oracle Global Temporary Tables怎麼樣?

CREATE GLOBAL TEMPORARY TABLE my_temp_table (
    column1 NUMBER, 
    column2 NUMBER 
) ON COMMIT DELETE ROWS; -- or use ON COMMIT PRESERVE ROWS to keep data until the end of your session. 
1

你可能會想動態創建與execute immediate表時,你需要一個臨時表:

-- creating the table 
begin 
    execute immediate q'! 
    create table tmp_foo_bar ( 
     col_1 number, 
     col_2 varchar2(50), 
     etc date 
    ) !'; 
end; 
/

-- using the table: 
insert into tmp_foo_bar values (42, 'forty-two', sysdate); 

-- dropping the table: 
begin 
    execute immediate 'drop table tmp_foo_bar'; 
end; 
/