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

Can you join a table to itself?

735


What is sql*plus?

801


What is substitution variable?

819


Is null operator in sql?

809


What is a natural join?

760


Which command is used to delete a package?

808


Can a table have no primary key?

808


How does pl sql work?

721


What are inner and outer joins examples of both?

714


What is sql and db2?

745


What is auto increment feature in sql?

847


Which sorts rows in sql?

797


Explain how you can copy a file to file content and file to pl/sql table in advance pl/sql?

761


What is difference between hql and sql?

732


How do you write a complex sql query?

817