首页 > 数据库 > Oracle > OCP 1Z0-051-37
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、D)
解析:
|
-- DROP TABLE时,索引被删除了,但视图和同义词仍在。 scott@TESTDB11>create table emp1 as select * from emp; Table created. scott@TESTDB11>create or replace view v_emp20 as select * from emp1 where deptno = 20; View created. scott@TESTDB11>drop table emp1; Table dropped. scott@TESTDB11>select * from cat;
|
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/17013648/viewspace-1158780/ ,如需转载,请注明出处,否则将追究法律责任。