What is a NULL value? What are the pros and cons of using
NULLS?
Answers were Sorted based on User's Feedback
Answer / s
NULL Value indicates the absence of a value. DB2 treats
NULL as an actual value and is not equal to blank, zero or
empty string.
The default value of a CHAR data type is blanks, VARCHAR is
empty string and INT,SMALLINT,FLOAT etc is 0.
NULL is not equal to any of the above.
NULLs does not satify any condition in the SQL except when
IS NULL predicate is used. Null can be used at times when
you cannot specify a value for a column, eg middle names,
not everyone has middle names.
| Is This Answer Correct ? | 9 Yes | 0 No |
Is db2 relational database?
What is the meaning of -805 SQL return code?
What is the COBOL picture clause for a DB2 column defined as DECIMAL(11,2)?
What is the use of dclgen in db2?
What does runstats do in db2?
what is a plan and how do you refer the plan in the program?
What is REORG? When is it used?
What does reorg do in db2?
What does a deadlock mean in DB2?
What is the database descriptor?
How does DB2 use multiple table indexes?
How can deadlocks be resolved?