Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Inserting multiple rows with one insert sql = ?

Inserting multiple rows with one insert sql = ?

From: Steve Chapman <scc14433_at_glaxowellcome.com>
Date: 2 Oct 1998 16:32:34 GMT
Message-ID: <01bdee20$f8a4dc80$e89a3398@us0071465>


hi all,

can anybody tell me if this is valid syntax, in Oracle 7 or Oracle 8 or anywhere else (SQL-92, SQL Server, Sybase, etc.):

given table:

   col1 number,
   col2 char,
   col3 char

can you do this:

   insert into table values (

      1, 'stuff', 'stuff',
      2, 'stuff', 'stuff',
      3, 'stuff', 'stuff');

i thought insert was limited to just ONE row.

yes, i know that multiple rows can be inserted like so:

   insert into table
   select * from some_other_table;

thanks!

--
Steve Chapman
Glaxo Wellcome Received on Fri Oct 02 1998 - 11:32:34 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US