I have just started with DB2 and have set up a small database called 'TEST' with the following table.
Code:
CREATE TABLE Customer
(
CustomerID INTEGER NOT NULL,
Name VARCHAR(20) NOT NULL
)
when I try to insert any data with something like
Code:
INSERT INTO Customer (CustomerID, Name) VALUES ('12', 'Trev');
It throws up the error
Code:
A value is not compatible with the data type of its assignment
target. Target name is "CUSTOMERID". SQLSTATE=42821
SQL0408N A value is not compatible with the data type of its assignment target. Target name is "CUSTOMERID
I'm fairly sure '12' is a non null integer.
Many thanks,