IN A TABLE HAVE ONE COLUMN PRIMARY KEY..IT WILL NOT ALLOWS
NULL VALUES AND DUPLICATE VALUES..INSTEAD OF PRIMARY KEY
WHY CANT WE USE UNIQUE AND NOT NULL.THESE TWO ALSO DOESNT
ACCEPT NULL VALUES IN NOT NULL AND UNIQUE DOESNT ACCEPT
DUPLICATE VALUES?
SO WHAT IS THE DIFEERENCE BETWEEN(UNIQUE,NOT NULL) AND
PRIMARY KEY??????
Answer Posted / banti
Both r same :)
Primary Key= (Unique + Not Null)
| Is This Answer Correct ? | 2 Yes | 4 No |
Post New Answer View All Answers
what are null values? : Sql dba
What is set transaction?
How to take user input in pl sql?
What is the difference between execution of triggers and stored procedures?
How consistent is the view of the data between and within multiple sessions, transactions or statements ?
Can we create index on primary key?
How do I run a script in sql developer?
What is difference between rank () row_number () and dense_rank () in sql?
What is sql key?
Can we enter data in a table in design view?
Can a varchar be a primary key?
What is the reports view in oracle sql developer?
What is the difference between nested table and varray?
what is clause? : Sql dba
What is t-sql? : Transact sql