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 do you understand by a stored procedure?
How to add a new column to an existing table with "alter table ... Add" in ms sql server?
What stored procedure would you use to view lock information?
How to rename an existing column with the "sp_rename" stored procedure in ms sql server?
What is the difference between primary key and unique constraints?
What is data block and how to define data block size?
What are the properties and different types of sub-queries?
How to list all login names on the ms sql server?
OPTIMIZATION OF SP,CURSOR,TRIGGERS
What are different types of statements that are supported by sql?
Can we deploy SSRS reports on our personal website?
How to encrypt data between dialogs?
What action plan is preferred if sql server is not responding?
What is inline table-value user-defined function?
Explain features of analysis services?