1z0-071 Oracle Database 12c SQL 第11题 DROP语句

本文详细解释了SQL中DROP TABLE命令的执行效果,包括数据及结构的删除、索引的消失、视图和同义词的保留但失效,以及挂起事务的自动提交等关键行为。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Q11. You issue the following command to drop the PRODUCTS table:
SQL > DROP TABLE products;
Which three statements are true about the implication of this command?
A. All data in the table is deleted but the table structure remains.
B. All data along with the table structure is deleted.
C. All views and synonyms on the table remain but they are invalidated.
D. A pending transaction in the session is committed.

E. All indexes on the table remain but they are invalidated.

Correct Answer: BCD

A.表中的所有数据都被删除,但表结构仍然存在。

B.删除表格结构中的所有数据包括表结构。

C.表格中的所有视图和同义词仍然存在,但它们失效。

D.会话中的待处理事务会被提交。

E.表中的所有索引仍然保留,但它们失效。

解析:

Drop 表,数据和结构会一起被删除;

Index 会被删除;

view 和sysnonym 会保留但是会失效; 

挂起的事务会提交掉。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值