How do you check for a null value in a db2 column?

Answers were Sorted based on User's Feedback



How do you check for a null value in a db2 column?..

Answer / guest

You use a null indicator on the colunm and if the null
indicator = -1 then the column has a null value.

Is This Answer Correct ?    32 Yes 0 No

How do you check for a null value in a db2 column?..

Answer / angoca

By querying the catalog
select nulls
from syscat.columns
where tabschema like 'XX%'
and tabname = 'YY'
and colname = 'ZZ'"

Or with the describe command
db2 describe table ZZ.YY

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More DB2 Interview Questions

when does the SQL statement gets executed when you use cursor in the application programming ?

3 Answers   IBM,


What is UNION,UNION ALL?

2 Answers  


What is the function of the Data Manager?

2 Answers  


What is bind plan?

0 Answers  


What is dclgen in db2?

0 Answers  






What is syscat in db2?

0 Answers  


Update command

1 Answers  


What is ACQUIRE/RELEASE in BIND?

3 Answers   Cognizant,


what is sql abend code -801,-802?

2 Answers  


Differentiate between cs and rr isolation levels? Where do you specify them?

0 Answers  


What are PACKAGES ?

3 Answers  


What is a view? Why use it?

3 Answers  


Categories