How do you retrieve the data from a nullable column?
Answer Posted / amol
We have to include one variable in working storage datatype
s9(4).
and while retriveing the value from nullable column we can
give ;host variable :null indicater. If value from column
is found to be null it will stoare in null indicater.
If we have not include the null indicater and value while
fetching found to be null the program will abend with
saqlcode -305.
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
Which isolation level provides maximum concurrency?
How to take backup of table in db2?
SQLCODE = -199, ERROR: ILLEGAL USE OF KEYWORD CHAR, TOKEN KEY was expected
What is multi row fetch in db2?
Explain db2.
What is explain plan in db2?
What is a db2 collection?
Mention the definition of cobol in varchar field.
What is check constraint. Explain with example.
What is host variable?
Is db2 relational database?
How to find the number of rows in a db2 table?
What is the function of logging in the db2 database?
Is db2 a mainframe?
what is a corelated subquerry?