I’m getting ORA-00947: not enough values from the query below:
insert into tableb
(colA, colb, colc, cold)
select
(select max(rec_no)+1 from tableb)
F2,
F3,
F4
from tablea;
Can someone point me to the correct way to include a sub query for an inser into/select statement?
Thanks
You are just missing a comma. As it is, Oracle thinks
F2is the name of your sub-select.