CREATE TABLE DEPT
( DEPTNO INTEGER NOT NULL
GENERATED ALWAYS AS IDENTITY
(START WITH 500, INCREMENT BY 1),
DEPTNAME VARCHAR (36) NOT NULL,
MGRNO CHAR(6),
ADMRDEPT SMALLINT NOT NULL,
LOCATION CHAR(30)
)
That's the syntax for UDB. I suspect it would be the same for DB2/400. Try it, either it works or it doesn't.