ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 047-194

047-194

原创 Linux操作系统 作者:jbymy2000 时间:2012-03-19 10:53:10 0 删除 编辑
194. Evaluate the following CREATE TABLE command:
CREATE TABLE order_item
(order_id NUMBER(3),item_id NUMBER(2),
qty NUMBER(4),CONSTRAINT ord_itm_id_pk PRIMARY KEY (order_id,item_id)
USING INDEX (CREATE INDEX ord_itm_idx ON order_item(order_id,item_id)));
Which statement is true regarding the above SQL statement?
A. It would execute successfully and only ORD_ITM_IDX index would be created.
B. It would give an error because the USING INDEX clause cannot be used on
a composite primary key.
C. It would execute successfully and two indexes ORD_ITM_IDX and
ORD_ITM_ID_PK would be created.
D. It would give an error because the USING INDEX clause is not permitted
in the CREATE TABLE command.
Answer: A

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

上一篇: 047-192
下一篇: 047-203
请登录后发表评论 登录
全部评论

注册时间:2012-01-10

  • 博文量
    416
  • 访问量
    214045