Hi,
I'm trying to add a primary key to an existing (and bad designed) table.
My first approach was create a sequence and use the sequence nextval as default.
ALTER TABLE MyTable
ADD MyTable_ID NUMBER(22) DEFAULT Mysequence.NEXTVAL;
But, it is not allowed in Oracle 9.2
Any suggestion?
Xks,
Miguel