37. You issued 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 along with the table structure is deleted.
B. The pending transaction in the session is committed.
C. All indexes on the table will remain but they are invalidated.
D. All views and synonyms will remain but they are invalidated.
E. All data in the table are deleted but the table structure will remain.
答案解析:
A正确,表结构以及表中所有数据都删除。
B正确,提交所有待定的事务处理。
C错误,删除表后,在数据库中会失去表的所有数据以及与表关联的所有索引。
D正确,保留视图和同义词,但不再有效。
E错误,表结构以及表中所有数据都删除。

本文深入探讨了SQL命令在数据库管理中的应用,重点解析了DROP TABLE命令的使用及其对数据库结构、数据、索引、视图和同义词的影响。通过解析案例,读者能够清晰理解SQL操作对数据库资源的管理和维护作用。
1484

被折叠的 条评论
为什么被折叠?



