This article brings you relevant knowledge about Oracle, which mainly introduces related issues about temporary tables, including transaction-level temporary tables, session-level temporary tables, etc., as follows Let's take a look, I hope it will be helpful to everyone.
Recommended tutorial: "Oracle Video Tutorial"
Temporary table is a special kind of table. When we need to repeatedly operate a batch of data in a certain (or multiple) table, by creating a temporary table for the batch of data, the operation may be simplified and efficiency may be improved!
Basic syntax:
create global temporary table 临时表名(colum,colum,.......)on commit delete rows;on commit preserve rows;
Description:
-- 创建事务级临时表 tmp_user 注:on commit delete rows 可省略create global temporary table tmp_user ( user_id varchar2(10), user_name varchar2(20)) on commit delete rows;
-- 创建会话级临时表 tmp_user1create global temporary table tmp_user1 ( user_id varchar2(10), user_name varchar2(20))on commit preserve rows;
Oracle Video Tutorial"
The above is the detailed content of Detailed example of Oracle temporary table. For more information, please follow other related articles on the PHP Chinese website!