How do you insert a record with a nullable column?

Answers were Sorted based on User's Feedback



How do you insert a record with a nullable column?..

Answer / santosh

For the column which you want to incert a null value,
incert -1 value to indicator variable then incert the
column.

Is This Answer Correct ?    3 Yes 2 No

How do you insert a record with a nullable column?..

Answer / s

INSERT INTO TABLE X VALUES('ABC','DEF','')

will allow you to insert a record with no value specified
for the nullable column

Is This Answer Correct ?    2 Yes 3 No

Post New Answer

More DB2 Interview Questions

before altering a table is it necessary to lock ? if lock what is it ? how to do ? ifi want to lock a table what is that command ?

0 Answers   IBM,


What do you mean by commit and rollback?

0 Answers  


How many types of page locks can be held in db2?

0 Answers  


could you give me an example how, where i code CHECKPOINT and restart...I need and example....thanks..

5 Answers  


What do the initials DDL and DML stand for and what is their meaning?

2 Answers  






How to find primary key of a table in db2?

0 Answers  


What do you need to do before you do EXPLAIN ?

1 Answers  


How to insert more than one record using insert?

7 Answers   Atos Origin, IBM,


What is scrollable cursor in db2?

0 Answers  


What is temporal table in db2?

0 Answers  


What is package versioning? Please give an example.

1 Answers  


How to resolve -818 sql code in DB2?

2 Answers   Cap Gemini,


Categories