1.会话级临时表:

会话级临时表是指临时表中的数据只在会话生命周期之中存在,当用户退出会话结束的时候,oracle自动清除临时表中数据。
格式如下:

Create Global Temporary Table Table_Name
(Col1 Type1,
Col2 Type2
...)
On Commit Preserve Rows;

2.事务级临时表:

事务级临时表是指临时表中的数据只在事务生命周期中存在,当一个事务结束(commit or rollback),oracle自动清除临时表中数据。
格式如下:

Create Global Temporary Table Table_Name
(Col1 Type1,
Col2 Type2
...)
On Commit Delete Rows;

相关文章:

  • 2022-01-11
  • 2021-06-23
  • 2021-11-18
猜你喜欢
  • 2019-02-15
  • 2021-09-13
  • 2022-12-23
  • 2021-05-21
  • 2022-02-21
  • 2021-08-28
  • 2021-12-04
相关资源
相似解决方案