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?
Answer Posted / 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 |
Post New Answer View All Answers
How do I create a view in db2?
Explain about cursor stability?
What is the syntax for creating a table in the db2 database?
Define sqlca.
SET is the ANSI standard for variable assignment, SELECT is not. SET can only assign one variable at a time, SELECT can make multiple assignments at once. If assigning from a query, SET can only assign a scalar value. If the query returns multiple values/rows then SET will raise an error. SELECT will assign one of the values to the variable and hide the fact that multiple values were returned (so you'd likely never know why something was going wrong elsewhere - have fun troubleshooting that one) When assigning from a query if there is no value returned then SET will assign NULL, where SELECT will not make the assignment at all (so the variable will not be changed from it's previous value) As far as speed differences - there are no direct differences between SET and SELECT. However SELECT's ability to make multiple assignments in one shot does give it a slight speed advantage over SET.
Which component is responsible for processing sql statements and selecting access paths?
What is the difference between db2 and oracle?
What is the use of reorg in db2?
List down the data types in the db2 database.
How is a typical db2 batch pgm executed?
What is the role of data manager in the db2 database?
How do you select a row using indexes in db2?
What do you mean by cursor?
What are the various data types available in db2?
is it compulsory commitment control in journal?