OCP-1Z0-051 补充题库 第1题 TRUNCATE命令的使用
2014-05-26 22:43
295 查看
一、原题
Evaluate the SQL statement:
TRUNCATE TABLE DEPT;
Which three are true about the SQL statement? (Choose three.)
A. It releases the storage space used by the table.
B. It does not release the storage space used by the table.
C. You can roll back the deletion of rows after the statement executes.
D. You can NOT roll back the deletion of rows after the statement executes.
E. An attempt to use DESCRIBE on the DEPT table after the TRUNCATE statement executes will
display an error.
F. You must be the owner of the table or have DELETE ANY TABLE system privileges to truncate
the DEPT table
答案: A,D,F
二、题目翻译
评估下面的sql语句:
TRUNCATE TABLE DEPT;
关于上面的sql语句,哪三个描述是正确的?(选择三项)
A.会释放表使用的存储空间。
B.不会释放表使用的存储空间。
C.执行完成后,可以回滚删除的数据。
D.执行完成后,不能回滚删除的数据。
E.执行完成后,使用DESCRIBE DEPT命令显示表结构会报错。
F. 执行这个命令,需要是这张表的拥有者,或者有DELETE ANY TABLE权限。
三、题目解析
TRUNCATE命令,是删除表中所有的数据,并且释放表空间,因为在删除的过程中不会产生undo信息,所以,不能回滚。
执行这个命令,需要有相关的权限,是自己建的表,或是有DELETE ANY TABLE权限,才可以删。
Evaluate the SQL statement:
TRUNCATE TABLE DEPT;
Which three are true about the SQL statement? (Choose three.)
A. It releases the storage space used by the table.
B. It does not release the storage space used by the table.
C. You can roll back the deletion of rows after the statement executes.
D. You can NOT roll back the deletion of rows after the statement executes.
E. An attempt to use DESCRIBE on the DEPT table after the TRUNCATE statement executes will
display an error.
F. You must be the owner of the table or have DELETE ANY TABLE system privileges to truncate
the DEPT table
答案: A,D,F
二、题目翻译
评估下面的sql语句:
TRUNCATE TABLE DEPT;
关于上面的sql语句,哪三个描述是正确的?(选择三项)
A.会释放表使用的存储空间。
B.不会释放表使用的存储空间。
C.执行完成后,可以回滚删除的数据。
D.执行完成后,不能回滚删除的数据。
E.执行完成后,使用DESCRIBE DEPT命令显示表结构会报错。
F. 执行这个命令,需要是这张表的拥有者,或者有DELETE ANY TABLE权限。
三、题目解析
TRUNCATE命令,是删除表中所有的数据,并且释放表空间,因为在删除的过程中不会产生undo信息,所以,不能回滚。
执行这个命令,需要有相关的权限,是自己建的表,或是有DELETE ANY TABLE权限,才可以删。
相关文章推荐
- OCP-1Z0-051 补充题库 第4题 聚合函数的使用
- OCP-1Z0-051 补充题库 第23题 表连接中别名的使用
- OCP-1Z0-051 补充题库 第33题 sql*plus命令
- OCP-1Z0-051 补充题库 第40题 聚合函数的使用
- OCP-1Z0-051 补充题库 第8题 子查询的使用范围
- OCP-1Z0-051 补充题库 第41题 nvl函数的使用
- OCP-1Z0-051 补充题库 第42题 DROP TABLE命令的影响
- OCP-1Z0-051 补充题库 第12题 oracle函数分类
- OCP-1Z0-051 补充题库 第19题 限制替代变量的输入值
- OCP-1Z0-051 补充题库 第5题 主查询和子查询的注意事项
- OCP-1Z0-051 补充题库 第28题 Date类型
- OCP-1Z0-051 补充题库 第31题 subquery子查询的注意事项
- OCP-1Z0-051 补充题库 第26题 单行函数特点
- OCP-1Z0-051 补充题库 第15题 子查询和join
- OCP-1Z0-051 补充题库 第2题 添加外键FOREIGN KEY
- OCP-1Z0-051 补充题库 第6题 SELECT查询语句
- OCP-1Z0-051 补充题库 第20题 约束的注意事项
- OCP-1Z0-051 补充题库 第18题 DELETE语句的特性
- OCP-1Z0-051 补充题库 第14题 关于表约束的视图
- OCP-1Z0-051 补充题库 第16题 rownum的用法