Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there an Oracle SQL tool that builds insert statements from a result set?

Is there an Oracle SQL tool that builds insert statements from a result set? We are currently only allowed to use a tool called SQL Station. I'd like to either suggest a tool, like Rapid SQL or CrazySQuirrell, or build my own re-usable chunk of sql.

like image 360
Glenn Wark Avatar asked Oct 19 '25 17:10

Glenn Wark


1 Answers

Where is this result set coming from? If you mean that you want to execute a SELECT, then insert the resulting data into another table, you can do that in a single SQL statement:

INSERT INTO table2 (columnA, columnB)
  SELECT columnA, columnB
    FROM table1;
like image 106
Dave Costa Avatar answered Oct 21 '25 08:10

Dave Costa