Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

composite index using primary key

2679576Jul 25 2016 — edited Jul 25 2016

Hi,

I am trying to prepare OCE certification, i searched some examples of exams in the  internet, i found this example which i didn't understand:

create table order_item

(order_id number(3),

item_id number(2),

qty number(4),

constraint ord_item_pk primary key(order_id,item_id)

using index (create index ord_itm_idx on order_item(order_id,item_id)));

in the correction, it is mentionned that the correct option is:

it would execute  successfully and only ord_itm_idx would be created but when i excuted the instruction on sql developer i found that both the table and the index where created ( and not only the index as it was mentionned).

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 22 2016
Added on Jul 25 2016
18 comments
2,656 views