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

Home -> Community -> Usenet -> c.d.o.server -> Q: multirow inserts

Q: multirow inserts

From: huh <huhhy_at_rocketmail.com>
Date: Mon, 28 Jun 1999 12:17:51 +0200
Message-ID: <7l7i4q$2s53$1@ns.felk.cvut.cz>


Hi,

I'd like to know whether it is possible returning the resultset (of constant values) without accessing a table.

E.g.:

select 'row1', 1, 13.6, 'AAAA'
union all
select 'row2', 7, 0.2, 'FFFF'
union all
select 'row3', 5, 7.3, 'xttU';

All values are constant so I see
no reason for necessity to access
any particular table. However the
statement above is invalid.

My intention is to insert data to my
table using the single (multirow) statement e.g.:

 insert into MyTable (col1, ... col2)
   <multirow select>;

Is there another way?

TIA --
Thank you for keeping >anti-spam< habit: not including my address in your reply. Received on Mon Jun 28 1999 - 05:17:51 CDT

Original text of this message

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