I want to add a column to an existing legacy database and write a procedure by which I can assign each record a different value. Something like ad
for oracle you could do something like below
alter table mytable add (myfield integer); update mytable set myfield = rownum;