SQL Insert into ... values ( SELECT ... FROM ... )

Posted by Shadow_x99 on Stack Overflow See other posts from Stack Overflow or by Shadow_x99
Published on 2008-08-25T12:45:56Z Indexed on 2010/03/30 17:13 UTC
Read the original article Hit count: 270

Filed under:
|
|

I am trying to insert into a table using the input from another table. Although this is entirely feasible for many database engines, I always seem to struggle to remember the correct syntax for the SQL-Engine of the day (MySQL, Oracle, SQLServer, Informix, DB2).

I've been wondering if there is a silver-bullet syntax coming from an SQL Standards (For example, SQL92) that would allow me to insert the values without worrying about the underlying database.

© Stack Overflow or respective owner

Related posts about sql

Related posts about database