I have the following table called table_1
I create a new column_3
then I create a sequence
CREATE SEQUENCE "sequence_1" MINVALUE 1 MAXVALUE 9999999999999999999999999999 INCREMENT BY 1 START WITH 1 CACHE 20 NOORDER NOCYCLE NOPARTITION
and I alter the table_1 so the default for new values on column_3 are the the values of the sequence.
ALTER TABLE table_1 MODIFY column_3 DEFAULT sequence_1.NEXTVAL
How can I replace the existing null values on column_3 with the values from this sequence? The final result should be:



create table t2 as (select id, color, row_number() over (order by DBMS_RANDOM.RANDOM) as rn from my_table)