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 select all columns of all rows from a table with a select statement in ms sql server?
How to add a new dsn with the odbc driver for sql server?
What is code near application topology?
How to list all tables in the database using odbc_tables()?
Explain about Views?
Why I am getting "the microsoft .net framework 2.0 in not installed" message?
How to add additional conditions in SQL?
What is a virtual table in sql?
What is left outer join in sql server joins?
Explain can you implement data mining in ssrs?
How to specify the collation for a character data type in ms sql server?
last function used in MS Access to convert sql what function will use in sql
What security features are available for stored procedure?
Describe in brief databases and sql server databases architecture.
what are the critical issues you have resloved in your company