Imagine you have a table in the data base for a few years with lots of records and finally you want to introduce a Primary Key field to that table (I know, it should be done from the start).
Is there an easy way to Update this PK field with some simple, easy Update statement? Something with the ROWNUM maybe...?
You know, each record should get its own, unique number, order does not matter, as long as 1000 records get the numbers from 1 to 1000.
Have fun.
---- Andy
A bus station is where a bus stops. A train station is where a train stops. On my desk, I have a work station.
Is there an easy way to Update this PK field with some simple, easy Update statement? Something with the ROWNUM maybe...?
You know, each record should get its own, unique number, order does not matter, as long as 1000 records get the numbers from 1 to 1000.
Have fun.
---- Andy
A bus station is where a bus stops. A train station is where a train stops. On my desk, I have a work station.