Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.tools -> Re: Primary key
Each table has one and only one primary key (as per relational database concepts). So you can't just have *another* primary key. You can of course extent the current primary key (by dropping and recreating it).
Regards,
Sybrand Bakker, Oracle DBA
"Lim Chin Yee" <ccelimcy_at_nus.edu.sg> wrote in message
news:3447D7F0AFD4D011AE0400608C14CE561F3C638D_at_pfs01.ex.nus.edu.sg...
> Table A's primary key is made up of 2 fields( fieldx and fieldy)
> If i were to add in a new field(fieldz) and make it a primary key as
> well,
> what are the consequences?
>
> consequences that i've thought of.
> 1. since fieldz is of null value, existing data cannot be validated
> since the constraints cannot work.
>
>
>
> p.s: all 3 fields shld be NON-NULL
>
> TIA
>
Received on Wed Aug 23 2000 - 08:17:34 CDT