Can we use more than one null value for unique key?

Answer Posted / arika

We can insert duplicate nul values in palce of using unique
key constrint.Because all nulls are not equal.


ex:-
select * from emp where comm=null;
explenation;
here equal operator not support null value because
all nulls are not equal
ex:-
select * from emp where comm is null;
explenation:
'is' operator suport null

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to connect a sql*plus session to an oracle server?

623


How do you define a foreign key?

539


How do you declare a constant?

529


What is the purpose of cursors in pl/sql?

638


How do rank () and dense_rank () differ?

522






Does truncate free space?

520


Is there any restriction on the use of union in embedded sql?

681


List and explain the different types of join clauses supported in ansi-standard sql?

825


Is primary key clustered index?

524


What is range partitioning?

522


What does count (*) mean?

530


How do you rank data in sql?

517


What are pl/sql packages?

573


what are different types of keys in sql?

608


What are sql indexes?

547