没有合适的资源?快使用搜索试试~ 我知道了~
oracle,sql临时表.docx
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 62 浏览量
2023-02-27
19:16:47
上传
评论
收藏 37KB DOCX 举报
温馨提示
试读
7页
。
资源推荐
资源详情
资源评论
Temporary Tables 临时表
ORACLE 数据库除了可以保存永久表外,还可以建立临时表 temporary tables。
这些临时表用来保存一个会话 SESSION 的数据,或者保存在一个事务中需要的
数据。当会话退出或者用户提交 commit 和回滚 rollback 事务的时候,临时表的
数据自动清空,但是临时表的结构以及元数据还存储在用户的数据字典中。
In addition to permanent tables, Oracle can create temporary tables to hold
session-private data that exists only for the duration of a transaction or session.
Temporary tables are supported by Oracle9i and Oracle8i.
2 详细介绍
会话级临时表是指临时表中的数据只在会话生命周期之中存在,当用户退出会话
结束的时候,Oracle 自动清除临时表中数据。
事务级临时表是指临时表中的数据只在事务生命周期中存在。当一个事务结束
(commit or rollback),Oracle 自动清除临时表中数据。
临时表中的数据只对当前 Session 有效,每个 Session 都有自己的临时数据,并
且不能访问其它 Session 的临时表中的数据。因此,临时表不需要 DML 锁。
The CREATE GLOBAL TEMPORARY TABLE statement creates a temporary table
that can be transaction-specific or session-specific. For transaction-specific
temporary tables, data exists for the duration of the transaction. For
session-specific temporary tables, data exists for the duration of the session.
Data in a temporary table is private to the session. Each session can only see
资源评论
G11176593
- 粉丝: 6646
- 资源: 3万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功