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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What's The Error Code For Unique Index Voilation?

872


List out the data types available.

918


What is bufferpool in db2?

807


Can we insert update delete in view?

754


What is consistency token in db2?

873


Explain in brief how does db2 determine what lock-size to use?

783


How to find schema of a table in db2?

755


Describe major components of db2?

860


Give the name of some fields form sqlca.

822


What is db2 instance?

797


How can you validate Sql errors during cursor operation in db2 pgms and where do you code?

1969


What is the default page size of buffer pools?

867


What are catalog tables in db2?

781


What is the purpose of using commit?

828


What is host variable in db2 cobol?

805