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 is a db2 tablespace?

689


What is rebind in db2?

668


Which component is used to execute the sql statements?

724


What is temporal table in db2?

690


How can you quickly find out the # of rows updated after an update statement?

705






Which component is responsible for processing sql statements and selecting access paths?

764


What is the difference between drop table and delete table?

653


Is db2 relational database?

650


Name the various locking levels available?

708


Define data page.

714


What is the cobol picture clause of the db2 data types date, time, timestamp?

705


How can deadlocks be resolved?

626


How to create backup table in db2?

741


Explain about cursor stability?

696


run jcl for cobol+db2 pgm?.. //jobcard //step001 exec pgm=ikjeft01 //systin dd * DSNSYSTEM(--------) RUN PROGRAM(MYPGMNAME) PLAN(-----), LIB(-------), PARMS(------) /* WHAT WILL U GIVE INSIDE THE BRACKETS... WHAT IS PLAN,PACKAGE,BIND?..PLAN N PACAKGES ARE GENERATED BY ?...

3894