Avatar of ewang1205
ewang1205

asked on 

column INTEGER GENERATED ALWAYS AS IDENTITY ( START WITH 1 INCREMENT BY 1 )

column T is defined as INTEGER GENERATED ALWAYS AS IDENTITY ( START WITH 1 INCREMENT BY 1 ).

How to find the next number for T without actually insert a new record?  The table has old data and I have trouble insert a new record.  Thanks.

DB2

Avatar of undefined
Last Comment
Raja Jegan R

8/22/2022 - Mon