IWETHEY v. 0.3.0 | TODO
1,095 registered users | 1 active user | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New On DB2 UDB Version 7
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.
New It doesn't.
But thanks. The DB2/400 is a different product completely and lacks many (most?) of the features of DB2 UDB v7.x.
     Any DB2/400 Goobs out there? - (mmoffitt) - (7)
         If no AutoIncrement, use a Sequence + a Pre-Insert Trigger? -NT - (CRConrad) - (3)
             Write before insert trigger in C. - (mmoffitt) - (2)
                 What, no sequences? Or, uh... It can't do triggers in SQL?!? -NT - (CRConrad) - (1)
                     I don't know this platform much, but... - (mmoffitt)
         Solution (for anyone who is interested). - (mmoffitt)
         On DB2 UDB Version 7 - (gdaustin) - (1)
             It doesn't. - (mmoffitt)

Before such superhuman attainments of sustained triviality one stands in something like awe.
55 ms