jasonhuibers
Programmer
I have a temp table (Temp_Acct_Ids) with a list of account ids.
For each account in the temp table I need to add a comment in another table for each record:
INSERT INTO Table_Upload VALUES(XXXXXX, 'Completed', 'NA', trunc(sysdate), 'This book was read.');
How can I replace XXXXXX in the insert statement with an Account id from Temp_Acct_Ids? If there are 50 accounts in
Temp_Acct_Ids... Then I need to have 50 records INSERTED into the Table_Upload..
How can I do this?
For each account in the temp table I need to add a comment in another table for each record:
INSERT INTO Table_Upload VALUES(XXXXXX, 'Completed', 'NA', trunc(sysdate), 'This book was read.');
How can I replace XXXXXX in the insert statement with an Account id from Temp_Acct_Ids? If there are 50 accounts in
Temp_Acct_Ids... Then I need to have 50 records INSERTED into the Table_Upload..
How can I do this?