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

what is REORG? what is the use?

4 Answers  


How do you retrieve the first 5 characters of firstname column of db2 table emp?

1 Answers  


What is a buffer in memory?

0 Answers  


How do run the JCL which has 25 steps by skipping the following steps 5, 10,15 and 25 without using COND statement

5 Answers   Syntel,


What are the various locks available?

5 Answers   CTS,


Describe major components of db2?

0 Answers  


What is correlated subquery?

1 Answers  


What is access path in db2?

0 Answers  


What is the maximum length of a column name in DB2? 18 or 30 or anything other than these?

4 Answers  


What does it mean if the null indicator has -1, 0, -2?

1 Answers  


What are the four lockable units for DB2?

1 Answers  


how to u check the query is executing or not ?where will u check for sqlcode ?

6 Answers   Infosys,


Categories