ITPub博客

首页 > 数据库 > Oracle > OCP 1Z0-051-37

OCP 1Z0-051-37

原创 Oracle 作者:LuiseDalian 时间:2014-05-12 07:09:24 0 删除 编辑
(37)You issued the following command to drop the PRODUCTS table:

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/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: OCP 1Z0-051-35
下一篇: OCP 1Z0-051-36
请登录后发表评论 登录
全部评论

注册时间:2012-02-06

  • 博文量
    1986
  • 访问量
    6043174