OCP-1Z0-051-題目解析-第37題

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. 


Answer: ABD 

A:表中所有的數據和表結構都會被刪除 (正確,truncate和delete只會刪除數據,drop會同時刪除數據和表結構)
B:未提交的事務將會被提交(正確,事務中遇到drop或create等DDL語句時,會提交事務)
C:表中的索引將會保留,但會無效(錯誤,索引也會一起刪除)
D:表中的視圖和同義詞將會保留,但是會無效(正確)
E:所有的數據將會被刪除但是保留表結構(錯誤,表結構會一同刪除)
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章