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 are sql azure firewall rules?
Hi all, can any one please tell me the difference between sql server 2008 and orace 9i
Explain the functionalities that views support?
What is store procedure? When do you use?
what is checksum in sql server.........???
How to add additional conditions in SQL?
Explain transaction isolation levels in sql server?
State a few properties of relational databases?
How can I check that whether automatic statistic update is enabled or not?
What is the maximum size of column in sql server?
How do I repair damaged sql server mdf file database? In previous day my mdf file has got damage due to unknown reasons then I used dbcc chekcdb command but it failed, MDF file is important for me, I don’ know that how to get back mdf file data. Please anyone suggest me?
Tell me what is difference between view and materialized view?
Why the trigger fires multiple times in single login?
Explain what is analysis service repository?
How to remove duplicate rows from table?