I thought I could do this but can't figure out why it isn't working..
----------------------------------------------------------
insert into table_1
(p_key,
id, --value from column2 tbl 2
p_key_table_2 --value from column1 tbl 2 hard coded
email_addr)
value (user.p_key_seq.nextval,
select t2.column2 from table_2 t2 where t2.column1 = n,
n,
email_addr@url.com)
----------------------------------------------------------
is it possible to set the value in table_1.id this in an insert this way? If so what's wrong?
----------------------------------------------------------
insert into table_1
(p_key,
id, --value from column2 tbl 2
p_key_table_2 --value from column1 tbl 2 hard coded
email_addr)
value (user.p_key_seq.nextval,
select t2.column2 from table_2 t2 where t2.column1 = n,
n,
email_addr@url.com)
----------------------------------------------------------
is it possible to set the value in table_1.id this in an insert this way? If so what's wrong?