What's the difference between a primary key and a unique key?
Answer Posted / sunil
HI ALL
IN CASE OF INSERTING REPETED NULL IN UNIQUE KEY COLOUMN ,
IF IT IS COMPOSITE KEY IS POSSIBLE. . . ANY LOGICAL RESON?
Eg:
CREATE TABLE TRY(ROLL NUMBER,LIB_CARD_NO NUMBER,
CONSTRAINT CON_UNQ UNIQUE(ROLL,LIB_CARD_NO));
INSERT INTO TRY VALUES(NULL,NULL);
--> 1 ROW CREATED
INSERT INTO TRY VALUES(NULL,NULL);
--> 1 ROW CREATED -- REPETED NULL ARE ALLOWED!!!!
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is default constraint?
When do you think a developer should use sql server-based cursors?
Tell me what is the significance of null value and why should we avoid permitting null values?
Can you create a logon trigger in sql server 2005 express edition?
ow to bring suspect mode datbase online from scratch
How do I setup a local sql server database?
What is sql collation?
how can u get last observation in an unknown dataset ?
Where the sql logs gets stored? : sql server database administration
What is a trace frag? Where do we use it?
What is analysis service repository?
Explain an incremental backup?
what is nonclustered index
Can sql servers link to other servers?
Why does sql studio use a single registered database repository? : sql server management studio