DB2 has the sequence data type, which provides much of the functionality of
the IDS serial.
You can automatically populate the serial column (I think) by using the
serial_name.nextval as the default value for the column. Someone correct me
if I'm wrong about this.
M.P.
> If I want to create a table with a triggter to retrive data fast in DB2
> database, how can I do that?
[quoted text clipped - 3 lines]
>
> Thanks
Ian - 30 Sep 2004 06:27 GMT
> DB2 has the sequence data type, which provides much of the functionality of
> the IDS serial.
>
> You can automatically populate the serial column (I think) by using the
> serial_name.nextval as the default value for the column. Someone correct me
> if I'm wrong about this.
IDENTITY is closer to serial (at least that's what we implemented in an
IDS -> DB2 migration).
A sequence isn't a data type, it's an object (that is independent of a
table).