您的位置:首页 > 其它

ocp-518

2015-10-19 22:33 309 查看
QUESTION NO: 518

The INV_HISTORY table is created using the command:

SQL>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 :

INV_NO INV_DATE INV_AMT

1 30-dec-2004 1000 2004年12月30日 1000

2 30-dec-2005 2000 2005年12月30日 2000

3 1-feb-2006 3000 2006年2月1日 3000

4 1-mar-2006 4000 2006年3月1日4000

5 1-apr-2006 5000 2006年4月1日 5000

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; 2006年2月15日 2006年4月15日

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.

Answer: C

发票历史表是使用下面的命令创建:

您想把属于2006年的数据存储在一个单一的分区,并发出命令:

此命令的结果会是什么?

C.它会产生一个错误,因为指定用于合并的分区不相邻。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: