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
What is the difference between a view and a stored procedure?
How to create view in stored procedure sql server?
How to create an identity column?
What is the difference between DATETIME2 and DATETIME?
How to Improve the performencs of SQL Server 2005 exclude stored Procedure and Indexes?
Which event (check constraints, foreign key, rule, trigger, primary key check) will be performed last for an integrity check?
How can you insert values in multiple rows using one Insert statement?
What is an indice?
Can we shrink data file in sql server?
Is sql server a database?
What is the difference between set and select?
What are the features of Embedded SQL
What are the advantages of having an index on the sql server?
What is format parameter in ssrs?
what are the Prerequisites for Replication?