Does DB2 have an equivalent to MS SQL SERVER's IDENTITY data type ?
For example in SEQUEL you can do this :
create table x
(
a int IDENTITY (1,1) NOT NULL,
b nvarchar(10)
)
This means that when inserting into table 'x' you do not specify a value for x.a - it is automatically generated by sequel - you can then retreive this value using 'SELECT @@IDENTITY'
thanks for any help on this.
Andy.