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 |
Define predicate?
how to unload different table data into different gdg files/ vsam files.
How would one remove old reorg information from the DB2 catalog?
Where could you look if you had a question about whether a column has been defined as an index?
How do you select a row using indexes in db2?
What are the three lock types?
How many databases are there?
How do you pull up a query which was previously saved in qmf?
What is the difference between group by and order by?
A Table feild is declared as Decimal(7,2). I want to insert the decimal in to this column thru cobol-db2 program. How should I declare my local input file variable or any suggestion?
What is package in db2 mainframe?
wht is d/f between union and joins ?