Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> OCP preparation...
Hi!
I am preparing for first OCP exam 1Z0-007. I decided to use as a helping tutorial book: "Oracle OCA Oracle 9i Associate DBA Certification Exam Guide" from OraclePress/Osborne (ISBN 0-07-222536-X) In Chapter 5 in Two Minutes Drill I found a sentence with makes me a little confused:
"PRIMARY KEY constraint can be added with a table constraint definition by using the alter table add (constraint constraint_name primary key (column_name)) statement or with a column constraint definition by using the alter table modify (column_name constraint constraint_name primary key) statement"
In my opinion based on SQLPlus practice experience alter table modify command shouldn't be used for adding primary key even as a column constraint. Am I right? Maybe I missed something...
BR,
Lukasz Feldman
![]() |
![]() |