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 / prachi
The null-indicator variable is examined for a negative
value. If the value is not negative, the application can
use the returned value of the host variable. If the value
is negative, the fetched value is null and the host
variable should not be used. The database manager does not
change the value of the host variable in this case.
Note:
If the database configuration parameter dft_sqlmathwarn is
set to 'YES', the null-indicator variable value may be -2.
This value indicates a null that was either caused by
evaluating an expression with an arithmetic error, or by an
overflow while attempting to convert the numeric result
value to the host variable.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are the contents of dclgen?
How to execute stored procedures?
What is db2 bind?
What is universal database?
What is dbrm library?
What is isolation level in db2?
When reorg is used?
How do I start db2 in windows?
What is commit in db2?
What os does db2 run on?
What is null in db2?
What are iseries servers?
What is ibm db2 database?
What do you mean by commit and rollback?
What is a system catalog table in db2?