ITPub博客

首页 > 数据库 > Oracle > Oracle 11G OCP 1Z0-053 17

Oracle 11G OCP 1Z0-053 17

原创 Oracle 作者:LuiseDalian 时间:2014-08-08 08:24:50 0 删除 编辑
(17)The INV_HISTORY table is created using the command:

CREATE TABLE INV_HISTORY

(

  inv_no NUMBER(3),

  inv_date DATE,

  inv_amt NUMBER(10,2)

)

partition by range(inv_date) interval(numtoyminterval(1,'month'))

(

  partition p0 values less than(to_date('01-01-2005','dd-mm-yyyy')),

  partition p1 values less than (to_date('01-01-2006','dd-mm-yyyy'))

);

The following data has been inserted into the INV_HISTORY table:


You would like to store the data belonging to the year 2006 in a single partition and issue the command:

SQL>ALTER TABLE inv_history MERGE PARTITIONS FOR(TO_DATE('15-feb-2006','dd-mon-yyyy')), FOR(TO_DATE('15-apr-2006')) INTO PARTITION sys_py;

What would be the outcome of this command?

A.It executes successfully,and the transition point is set to'1-apr-2006'.

B.It executes successfully,and the transition point is set to'15-apr-2006'.

C.It produces an error because the partitions specified for merging are not adjacent.

D.It produces an error because the date values specified in the merge do not match the date values stored in the table.


答案:(C)

解析:

参考 ALTER TABLE的merge_table_partitions子句

对于范围分区,进行合并的2个分区必须是连续的。


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/17013648/viewspace-1247596/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2012-02-06

  • 博文量
    1986
  • 访问量
    6043895