Greetings,
I am new to DB2 and am migrating an app from Oracle to DB2 UDB Workgroup 7.1. I am planning on using the GENERATED ALWAYS AS IDENTITY clause for my primary key field in each of my tables. (the Oracle app uses sequences)
My question is, after I perform an INSERT on a table, what is the SQL to get the value of the new records generated key value?
Thanks in advance,
John
I am new to DB2 and am migrating an app from Oracle to DB2 UDB Workgroup 7.1. I am planning on using the GENERATED ALWAYS AS IDENTITY clause for my primary key field in each of my tables. (the Oracle app uses sequences)
My question is, after I perform an INSERT on a table, what is the SQL to get the value of the new records generated key value?
Thanks in advance,
John