If table B exists: insert into B (col1,col2...) select col1,col2.. from A If table B doesn't exist: select col1,col2.. into B from A
2009/4/28 Roy Arellano <[email protected]> > > I am trying to create a stored procedure in which I take a select > statement for multiple rows out of one table and insert them into > another table when calling this stored procedure. Any suggestions? > > Goal: > 1. Create Stored Procedure > 2. Select Distinct data columns from table A (many rows) > 3. Insert result set into table B > > Thanks. > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Oracle PL/SQL" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Oracle-PLSQL?hl=en -~----------~----~----~----~------~----~------~--~---
