| |
GeekInterview.com > Interview Questions > Oracle > SQL Plus
| Print | |
Question: What is the basic difference between primary key and (unique key along with Not NULL).
|
| September 09, 2007 14:40:33 |
#6 |
| glakshkar |
Member Since: September 2007 Total Comments: 3 |
RE: What is the basic difference between primary key a... |
Hi Anil, Apart from NOTNULL, I can tell you one more difference.
We can define Primary key on only one column in a table. But for Unique key there is no limit. we can define as many columns as we want.
THis is totally wrong Primary key too can contain multiple column.
Dear Anil,
we can achieve PK functionality via using Unique key+ Not Null contsraint
but it's not gud practice, when u can achieve same functionality via single PK constraint
|
| |
Back To Question | |