What value the host varible will contain , if null
indicator value is -2 ? Will it contain the truncated value
or nothing will move ?
Answer Posted / mk
If the null indicator value is -ve, then the field will
have null value. if -2 means then there is a data
conversion error resulted the null indicator set to -2, so
the field will have nothing.
Is This Answer Correct ? | 7 Yes | 2 No |
Post New Answer View All Answers
What is a bind card?
What is the latest version of ibm db2?
What is nvl in db2?
How do I optimize a query in db2?
How does coalesce work?
What is the physical storage length of timestamp data type?
can we view the access paths created by dbrm ? how ? thx
What is data manager?
What are the uses of db2 optimizer?
Explain about open switch business continuity software?
What is db2 bind?
How to get the ddl of a table 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.
I have a subprogram B calling from mainprogram A.I have opened a cursor in A ,Can i fetch the same cursor in subprogram B , If yes , Please explain the reason?
What is the difference between using bind () and rebind () methods of naming class?