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 difference between Plan and Package
Where would you find information about the type of database authority held by the user?
in a table consist of 1000 records among that i was updated 145 record how could i know that ..list of recently updated record's and where could i see those updated record's....pls help me out....
What is precompiler in db2?
ther r 2 tables OTTABLE & SALTABLE, add the otamt from OTTABLE to empsal of SALTABLE if eid is matched else add the unmatched from OTTABLE to SALTABLE
What is DB2 (IBM Database 2)?
What is the use of value function?
Mention the different locking levels that are available in db2.
what is + sign and -ve sign for sql code ?
How Plan is created while executing the query using SPUFI?
What are db2 error codes -305 and -407. What is the difference between these 2 error codes ?
Suppose the outcome of executing a query results in a row having null. Based on the answer how you use it? Its declaration and inclusion?