Can a unique index have more than one null value? If not,
what error code is given if an attempt is made to insert
more than one null value?
Answers were Sorted based on User's Feedback
Answer / mani
Unique index can have null values and no null value is equal
to another null value.
i don't know if it raises an error or not when you insert a
null value.
Null value acceptance in the column is again based on the
definition given for the column whether it can accept null
values or not.
| Is This Answer Correct ? | 5 Yes | 2 No |
Answer / sri
Null value will allow only one null (That is maximum) as
per DB2 stds. If we try to insert more we get error -305.
| Is This Answer Correct ? | 2 Yes | 5 No |
Answer / ratheesh
No. A SQLCODE of -803 (duplicate insert) will be returned.
| Is This Answer Correct ? | 0 Yes | 6 No |
What is buffer pool and list some of them?
How many databases can be created inside an instance in db2 ?
What does DML stand for and what are some examples of it?
Who uses db2?
How will you delete duplicate records from a table?
What is the use of reorg in db2?
What is QUIESCE?
how 2 resolve the -311 sqlcode
What is meant by index cardinality?
in db2, already 10 columns arie der, and i want to insert 11th column. what parameters u wil consider for insertion and how will u insert
What does db2 plan contain?
What do the initials DDL and DML stand for and what is their meaning?