0
這在Mssql中是完美的。如何在Oracle中創建臨時表+工會
如何在Oracle改寫這個:
create table #temptable (mgr bigint)
insert into #temptable (mgr) (
select 1
union select 2
union select 3)
這在Mssql中是完美的。如何在Oracle中創建臨時表+工會
如何在Oracle改寫這個:
create table #temptable (mgr bigint)
insert into #temptable (mgr) (
select 1
union select 2
union select 3)
您可以創建一個臨時表是這樣的:
create global temporary table temptable (mgr number);
,將數據插入該表:
insert into temptable
select 1 from dual union all
select 2 from dual union all
select 3 from dual;
你這是什麼想要達到?你知道臨時表中的數據只保留到會話結束或有提交/回滾(它取決於臨時表的類型)嗎? – zaratustra 2014-09-29 13:24:35