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

I have a table name Table1 which contain columns Cust_no, car_model, country, salesamt. The records are 101, Fiat, India, 12345 2nd record is 102, Tata, USA, 98743 3rd record is 101, indica, India, 65342 4th record is 103, Toyota, UK, 64522 5th record is 103, Maruti, USA, 98632 and so on..... Now my question is write sql query which will give me detail about the sum of sales amount in perticular country

2 Answers   IBM,


Describe what a storage group(STOGROUP) is?

2 Answers  


What is -904 sql code? How to resolve it?

3 Answers  


What is deadlock in db2?

0 Answers  


How to retrieve rows from a db2 table in embedded sql?

0 Answers  


How to handle null values in db2

4 Answers  


Usually, which is more important for DB2 system performance - CPU processing or I/O access?

1 Answers  


what is SPUFI ?

2 Answers  


Mention the location where the output received from explain statement is stored.

0 Answers  


What is ibm db2 connect?

0 Answers  


how will you retrieve first record in table

1 Answers   UST,


What is dclgen in db2?

0 Answers  


Categories