OCP-1Z0-051 补充题库 第42题 DROP TABLE命令的影响
来源:互联网 发布:少女前线数据库 编辑:程序博客网 时间:2024/05/23 11:21
一、原题
二、题目翻译
三、题目解析
You issue the following command to drop the PRODUCTS table:
SQL>DROP TABLE products;
What is the implication of this command? (Choose all that apply.)
A. All data in the table are deleted but the table structure will remain
B. All data along with the table structure is deleted
C. All views and synonyms will remain but they are invalidated
D. The pending transaction in the session is committed
E. All indexes on the table will remain but they are invalidated
答案: B,C,D
SQL>DROP TABLE products;
What is the implication of this command? (Choose all that apply.)
A. All data in the table are deleted but the table structure will remain
B. All data along with the table structure is deleted
C. All views and synonyms will remain but they are invalidated
D. The pending transaction in the session is committed
E. All indexes on the table will remain but they are invalidated
答案: B,C,D
二、题目翻译
PRODUCTS表执行drop table products;命令,
这个命令执行后会发生什么结果?
A.所有的数据都被删除,但表结构会被保留。
B.所有的数据和表结构都被删除了。
C.所有的和这张表相关的视图和同义词会被保留,但是已经失效了。
D.在这个会话中,没提交的事务会被提交。
E.这张表相关的索引会被保留,但是已经失效了。
这个命令执行后会发生什么结果?
A.所有的数据都被删除,但表结构会被保留。
B.所有的数据和表结构都被删除了。
C.所有的和这张表相关的视图和同义词会被保留,但是已经失效了。
D.在这个会话中,没提交的事务会被提交。
E.这张表相关的索引会被保留,但是已经失效了。
三、题目解析
1.drop命令是删除表,不光是数据,表结构也删除了。
2.基于这张表的索引会被删除,但是视图和同义词会被保留,详细可查看联机文档,关于drop table 的说明:
http://docs.oracle.com/cd/E11882_01/server.112/e41084/statements_9003.htm#SQLRF01806
If the table is a base table for a view, a container or master table of a materialized view, or if it is referenced in a stored procedure, function, or package, then the database invalidates these dependent objectsbut does not drop them. You cannot use these objects unless you re-create the table or drop and re-create the objects so that they no longer depend on the table.
2.基于这张表的索引会被删除,但是视图和同义词会被保留,详细可查看联机文档,关于drop table 的说明:
http://docs.oracle.com/cd/E11882_01/server.112/e41084/statements_9003.htm#SQLRF01806
If the table is a base table for a view, a container or master table of a materialized view, or if it is referenced in a stored procedure, function, or package, then the database invalidates these dependent objectsbut does not drop them. You cannot use these objects unless you re-create the table or drop and re-create the objects so that they no longer depend on the table.
All table indexes and domain indexes are dropped, as well as any triggers defined on the table, regardless of who created them or whose schema contains them. If table is partitioned, then any corresponding local index partitions are also dropped.
3.drop table 是DDL语句,DDL语句会提交没有提交的事务。
0 0
- OCP-1Z0-051 补充题库 第42题 DROP TABLE命令的影响
- OCP-1Z0-051 补充题库 第1题 TRUNCATE命令的使用
- OCP-1Z0-051 补充题库 第36题 约束
- OCP-1Z0-051 补充题库 第37题
- OCP-1Z0-051 补充题库 第33题 sql*plus命令
- OCP-1Z0-051 第37题 drop table
- OCP-1Z0-051 补充题库 第4题 聚合函数的使用
- OCP-1Z0-051 补充题库 第5题 主查询和子查询的注意事项
- OCP-1Z0-051 补充题库 第8题 子查询的使用范围
- OCP-1Z0-051 补充题库 第11题 SQL和SQL*Plus的区别
- OCP-1Z0-051 补充题库 第14题 关于表约束的视图
- OCP-1Z0-051 补充题库 第16题 rownum的用法
- OCP-1Z0-051 补充题库 第17题 约束的注意事项
- OCP-1Z0-051 补充题库 第18题 DELETE语句的特性
- OCP-1Z0-051 补充题库 第19题 限制替代变量的输入值
- OCP-1Z0-051 补充题库 第20题 约束的注意事项
- OCP-1Z0-051 补充题库 第23题 表连接中别名的使用
- OCP-1Z0-051 补充题库 第27题 UNION的注意事项
- c语言与java中原始数据类型在内存中的占位
- shell基础十二篇
- Antlr包冲突问题
- jquery层级选择器, 选取td
- 23种设计模式(3):抽象工厂模式
- OCP-1Z0-051 补充题库 第42题 DROP TABLE命令的影响
- java ImageIO处理图像的封装 .
- FPGA 降频实现led的闪烁,LED不闪烁
- strdup字符复制,strtok_r分割字符串,strchr查找字符等的用法
- 深入PHP-直观观察array的扩展
- linux awk 内置函数详细介绍(实例)
- JS动态添加行
- java Volatile 和 Transient
- FFmpeg命令行工具系列一------ffmpeg.exe概述