how do you resolve -818 error in db2. where we have to see
time stamp token. i said by seeing in load module and
plan .is it correct or not. give clear explination for how
to see time stamp token
Answer Posted / ganesh
Compile and Bind must have the same Timestamp. Rebind or
Recompile and then Rebind.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Is schema the same as database?
Who uses db2?
What is dbrm? When it will be created?
How do I optimize a query in db2?
How do you concatenate the firstname and lastname from emp table to give a complete name?
What kind of database is db2?
What is copy pending and check pending in db2?
What is the use of value function?
What is declare cursor?
What is explain plan in db2?
Mention the way of highlighting as well as putting a cursor to use in a cobol program.
What is db2 command?
What is cursor stability in db2?
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.
Mention a credible reason why select* is never given preference in an sql program that has been embedded.