44. View the Exhibit and examine the structure of ORD and ORD_ITEMS tables.
In the ORD table, the PRIMARY KEY is ORD_NO and in the ORD_ITEMS tables the
composite
PRIMARY KEY is (ORD_NO, ITEM_NO).
Which two CREATE INDEX statements are valid? (Choose two.)
A. CREATE INDEX ord_idx
ON ord(ord_no);
B. CREATE INDEX ord_idx
ON ord_items(ord_no);
C. CREATE INDEX ord_idx
ON ord_items(item_no);
D. CREATE INDEX ord_idx
ON ord,ord_items(ord_no, ord_date,qty);
Answer: BC
建立主键的时候会自动在其上建立唯一索引
SQL> create table temp(a int not null primary key,b int,c int);
SQL> create index temp_ind on temp(a);
ORA-01408: 此列列表已索引
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/11312660/viewspace-718813/
,如需转载,请注明出处,否则将追究法律责任。