Skip to Main Content

Oracle Database Discussions

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!

Constraints for Object Types in Oracle

922439Sep 29 2012 — edited Sep 29 2012
Is it possible for attributes of object type in oracle to have constraints like primary key or not null or foreign key ??

Like if following object type is created :

create type Ebay_Member as object
(
eid varchar(5),
pref_seller varchar(5)
);

then will I need eid to be primary key and pref_seller being foreign key on eid.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 27 2012
Added on Sep 29 2012
8 comments
1,719 views