what's the error code for Unique Index Violation?
Answers were Sorted based on User's Feedback
Answer / abhishek kumar
-803 is th error code for the Unique Index Violation
| Is This Answer Correct ? | 5 Yes | 2 No |
Explain the use of the WHERE clause.
How do you select a row using indexes in db2?
what is a trigger and types of triggers
What does it mean if the null indicator has -1, 0, -2?
could you give me an example how, where i code CHECKPOINT and restart...I need and example....thanks..
how to identify the pseudo conversation by seeing the program
I have a table(product),It contain fields(productname,cost). I want to retrieve the product name ,which cost is second maximum in the table?
what's the best lock size that you could use when you create a tablespace?
List down the types of triggers in the db2 database?
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.
What is the syntax for seeing the columns and data types of a table in the db2 database?
What are the uses of db2 optimizer?