Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: SQL question, updating all rows
James Lorenzen <lorenzen_at_tiny.net> wrote in article
<lorenzen-ya02408000R1506981237520001_at_news.visi.com>...
> Create a sequence (Oracle object) and update table set newcol =
seqname.nextval
>
> James
>
If you need to keep adding to this table, you could use a trigger (before
insert for each row) to execute :new.newcol = seqname.nextval
Received on Wed Jun 17 1998 - 21:35:26 CDT
![]() |
![]() |