Hi all!
Can I use select statements in the value section of the Insert into format?
I want to do the following:
insert into table1 (Name, CUSTOMERID)
Values ('Javier', select customerid from tracking_arc where rowid in (select row_id from exceptions))
and add all the records countinuosly like a loop until there are no more records on the exception table.
there are 6019 records in the exception table and i only want the row_id value and i dont want to replace manually the value on the insert statement 6019 times....
Can this be done?
Thanks in advance!!!!appreciate any help
Can I use select statements in the value section of the Insert into format?
I want to do the following:
insert into table1 (Name, CUSTOMERID)
Values ('Javier', select customerid from tracking_arc where rowid in (select row_id from exceptions))
and add all the records countinuosly like a loop until there are no more records on the exception table.
there are 6019 records in the exception table and i only want the row_id value and i dont want to replace manually the value on the insert statement 6019 times....
Can this be done?
Thanks in advance!!!!appreciate any help