begin
FOR c_d
IN (SELECT *
FROM table_a
)
LOOP
c_d.id := NULL;
INSERT INTO table_a values (c_d);
END LOOP;
end;
this gives an ORA-00947: not enough values
in the line of "INSERT INTO table_a values (c_d);"
How to fix it?
Blog with ORACLE related posts (mainly PL/SQL programming) and some personal thoughts
Blog com artigos sobre ORACLE (principalmente sobre programação PL/SQL) e alguns pensamentos pessoais.
begin
FOR c_d
IN (SELECT *
FROM table_a
)
LOOP
c_d.id := NULL;
INSERT INTO table_a values (c_d);
END LOOP;
end;