jwdcfdeveloper
Programmer
Does anyone know how to use a sequential value in an insert/select statement, or a work around. I am testing an insert select statement:
insert into table_a(id, description, price, quantity, discount)
select id_seq.nextval, a.description, b.price, b.quantity
from my_table a, your_table b
where a.id = b.id
and....
Basically the query errors out because Oracle doesn't like sequential values in it's insert/select statements. I open to suggestions as to how I can fix this.
insert into table_a(id, description, price, quantity, discount)
select id_seq.nextval, a.description, b.price, b.quantity
from my_table a, your_table b
where a.id = b.id
and....
Basically the query errors out because Oracle doesn't like sequential values in it's insert/select statements. I open to suggestions as to how I can fix this.