Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Populating a column with sequence values

martin75Mar 3 2008 — edited Mar 3 2008
I have a table with 4000 records and this table doesn't have a primary key. Now i've added a column to this table which should be the future primary key of this table.

Now i've created a sequence. How can i populate the values generated by this sequence to the newly created empty column with all my 4000 rows remaining intact?

I had a column called created_time which gets populated with sysdate every time a row was inserted. Can i insert the sequence values based on the chronological order of created_time column?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 31 2008
Added on Mar 3 2008
11 comments
9,418 views