Hello everyone, I have a little trick question ;-)
I have the following table:
Quote:
|
CREATE TABLE RoutingRoute (id INTEGER GENERATED BY DEFAULT AS IDENTITY NOT NULL, PRIMARY KEY(id))
|
How do i insert into this table?
Quote:
|
INSERT INTO RoutingRoute (id) VALUES (null)
|
I get the following error message:
Quote:
|
PDOException: SQLSTATE[23502]: Not null violation: -407 [IBM][CLI Driver][DB2/LINUX] SQL0407N Assignment of a NULL value to a NOT NULL column "TBSPACEID=2, TABLEID=6, COLNO=0" is not allowed. SQLSTATE=23502
|