oracle temporary table
It is also possible to create a temporary table. The definition of a temporary table is visible to all
sessions, but the data in a temporary table is visible only to the session that
inserts the data into the table. Use the
CREATE GLOBAL TEMPORARY
TABLE
statement to create a temporary table. The ON COMMIT
clause indicate if the data in the table is transaction-specific (the default) or session-specific.[@more@]臨時表分為兩種 會話臨時表和事務臨時表
- 會話臨時表指臨時表中的資料只在會話生命週期存在,當會話結束後,自動truncate表中此session的資料;
- 事務臨時表指臨時表中的資料只在事務生命週期存在,當事務提交或者回滾後,自動truncate表中資料;
create global temporary temp_session(columns...) on commit preserve rows;--session temporary table
create global temporary temp_transaction(columns...) on commit delete rows;--transaction temporary table
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/28758644/viewspace-1060876/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle臨時表GLOBAL TEMPORARY TABLEOracle
- oracle的兩種global temporary table!Oracle
- 【TEMPORARY TABLE】Oracle臨時表使用注意事項Oracle
- 資料庫表--temporary table資料庫
- 全域性臨時表 GLOBAL TEMPORARY TABLE
- 【TEMPORARY TABLE】Oracle兩種臨時表型別功能特點比較Oracle型別
- Redo內部解析-Global Temporary table insert(九)
- create table進階學習(二)_全域性臨時表_global temporary table
- oracle global temporary table全域性臨時表_測試及v$tempseg_usageOracle
- [Oracle Script] Temporary Sort UsageOracle
- Oracle Temporary Tables(Oracle 臨時表)Oracle
- Temporary tablespaces in RAC ? Oracle databas...Oracle
- orace global temporary table全域性臨時表測試小記
- 臨時表(GLOBAL TEMPORARY TABLE)及統計資訊收集,動態取樣
- [Oracle] Partition table exchange Heap tableOracle
- Allocation of Temporary Segments for Temporary Tables and Indexes (28)Index
- oracle的臨時表空間temporary tablespaceOracle
- oracle shrink tableOracle
- Oracle Table LocksOracle
- Alter table for ORACLEOracle
- Oracle Table FunctionOracleFunction
- Oracle佇列鎖enq:TS,Temporary Segment (also TableSpace)Oracle佇列ENQ
- Oracle 普通table 轉換為partition tableOracle
- oracle cache table(轉)Oracle
- Oracle table selectOracle
- Oracle:TABLE MONITORINGOracle
- oracle之nalyze tableOracle
- Oracle ASM Allocation TableOracleASM
- oracle cache table(1)Oracle
- oracle cache table(3)Oracle
- oracle cache table(2)Oracle
- oracle cache table(5)Oracle
- oracle cache table(4)Oracle
- oracle cache table(6)Oracle
- Oracle -- 深入體會PLAN_TABLE、PLAN_TABLE$Oracle
- Oracle --- PLAN_TABLE$和PLAN_TABLE區別Oracle
- Oracle10g New Feature -- 5.Temporary Tablespace GroupOracle
- Oracle ASM Partnership and Status TableOracleASM