create table duplicate as select * from original
alter table duplicate add ID number;
create sequence seq1set pagesize 0set linesize 200spool update.sql
select 'update duplicate set ID='||seq1.nextval||q'[ where rowid=']'||rowid||q'[';]' from duplicate;spool off>@update.sql
No comments:
Post a Comment