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

What is the COBOL picture clause for a DB2 column defined as DECIMAL(11,2)?

5 Answers   Emsang,


what is consistency token

3 Answers  


Is it possible using max on a char column?

0 Answers  


4. A DB2 application is bound with uncommitted Read isolation level.It issues a request that retrieves 20 rows out of 200000 in the table. Which of the following descrbes the rows that are locked as a result of this request? a. None of the rows are locked. B.The retrieved rows are locked. C.The last row of the result set is locked. D.The rows not previously updated by another application are locked.

3 Answers   Wipro,


Explain in detail about buffer manager and its functionalities?

0 Answers  






What is a subselect? Is it different from a nested select?

1 Answers  


how can u understand the end of the table ?

1 Answers   TCS,


Explain db2.

0 Answers  


How do you define a correlated name?

1 Answers  


Are views updatable ?

4 Answers  


What is the difference between SYNONYM and ALIAS?

6 Answers   TCS,


Is db2 free?

0 Answers  


Categories