What are db2 error codes -305 and -407. What is the
difference between these 2 error codes ?



What are db2 error codes -305 and -407. What is the difference between these 2 error codes ?..

Answer / amarnadh reddy

Hi,
-305 is Null Indicator is needed. The null value cannot be
assigned to output host variable. Because no Indicator
variable is specified. (to fetch or select operation
resulted in the retrieval of a null value to be inserted
into the output host vaariable)

-407 is An update or insert value is null. but the object
column name cannot contain null values.(the update or insert
value was null. But the object column was declared as not
nullin the table)

Is This Answer Correct ?    11 Yes 0 No

Post New Answer

More DB2 Interview Questions

select distinct(empid),distinct(dept),name from EMP will the above query work?

2 Answers   CTS,


my project is insurance management system,how to explain my work environment in interview?

2 Answers   CGI, Value Labs,


what is the differences between spufi and qmf and which is better?

4 Answers   Accenture, Cap Gemini,


What is an EXPLAIN in DB2. How and what is the steps followed in EXPLAIN command. Can all the queries be used in EXPLAIN command to check the performance.

3 Answers   IBM,


WHAT IS MEANT BY COMMIT COMMAND?

7 Answers   Wipro,






Which component is responsible for db2 startup and shutdown?

0 Answers  


What is table space in db2?

0 Answers  


How to resolve SQL Code -310. The db table feild is declared as Decimal(7,2).

2 Answers   IBM, Infosys,


What is null indicator in cobol db2?

0 Answers  


which is the most efficient tablespace?? a.simple tablespace. b.partitioned tablespace. c.segmented tablespace. d.none of the above. please post answer with the reason.?

3 Answers  


what are stage one indexable predicates?

1 Answers  


what is SPUFI ?

2 Answers  


Categories