How do you retrieve the data from a nullable column?

Answers were Sorted based on User's Feedback



How do you retrieve the data from a nullable column?..

Answer / s

DB2 application must also include a null indicator host
variable along with the host variable to contain the actual
value.

Is This Answer Correct ?    6 Yes 1 No

How do you retrieve the data from a nullable column?..

Answer / 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

More DB2 Interview Questions

by using cursors , we can access particular records from the table based on some condition, i want to delete those selected records, how can we write a query for this in the program?

4 Answers   Mphasis,


What are packages in db2?

0 Answers  


What does the CHECK Utility do ?

1 Answers  


What is a cursor in programming?

0 Answers  


What is a bind in db2?

0 Answers  


What is index cardinality?

3 Answers  


List some fields from sqlca?

0 Answers  


How do I create a table MANAGER (EMP-NO, MANAGER) where MANAGER is a foreign key which references to EMP-NO in the same table? Give the exact DDL.

3 Answers  


a cursor normally gets closed once we provide a commit . If u try to close the same cursor with close cursor command later after providing the commit will there be any sql-error.

3 Answers  


Which are the db2 tools to protect integrity of the database?

0 Answers   IBM,


PLAN IS EXECUTABLE AND PACKAGE IS NOT EXECUTABLE . THEN WHAT IS THE USE OF PACKAGE?

2 Answers   Tech Mahindra, Wipro,


What is the difference between IN subselects and EXISTS subselect?

1 Answers   HCL, PreVator, TCS,


Categories