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 are the benefits of using the db2 database?

662


What is temporal table in db2?

603


what is db2 restart?

1693


What is null indicator in cobol db2?

585


What does reorg do in db2?

578






How do you stop a db2 database in linux?

568


What is runstats and reorg in db2?

799


What does sqlcabc has?

633


How to check sequence on a table in db2?

600


How to fetch the last row from the table in SQL (db2)?

1040


How do I connect my db2 database to ibm?

602


What is null value in db2?

567


What is db2 connect?

609


What are the contents of a dclmgen?

628


What is the difference between drop table and delete table?

555