Can we have more than one NULL in a column having unique
constraint?
Answer Posted / rammohan176
yes Unique constraint accept more than one null.... because null is always not equal to another null value.i.e null<>null.
if any body have doubt please check this
CREATE TABLE TEST1 ( ENO NUMBER CONSTRAINT EU UNIQUE,
NAME1 VARCHAR2(10))
INSERT INTO TEST1 (NAME1) VALUES('RAM')
INSERT INTO TEST1 (NAME1) VALUES('KARTHIK')
INSERT INTO TEST1 (NAME1) VALUES('SANTHOSH')
INSERT INTO TEST1 (NAME1) VALUES('SANDY')
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
How to optimize stored procedures in sql server?
What is temporal table?
What is the difference between row_number and dense_rank?
How to loop through returning rows?
What is hot add cpu in sql server 2008?
What is the purpose of object explorer and its features? : sql server management studio
What is collation sensitivity? Explain different types.
What do you understand by check constraint in sql server?
Which joins are sql server default?
How to divide query output into multiple groups with the group by clause in ms sql server?
How do I open a .db file?
What is executereader?
How do I trace a query in sql server?
Why does sql studio use a single registered database repository? : sql server management studio
How to select some specific rows from a table in ms sql server?