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 -> Re: Compound INSERT statement - easy (I think)

Re: Compound INSERT statement - easy (I think)

From: W v A <wesselX_at_Xwau.mis.ah.nl>
Date: Thu, 9 Jul 1998 06:16:45 GMT
Message-ID: <EvtDFG.C5w@ahisinfr.xs4all.nl>


In article <dolans.899929499_at_stripe.Colorado.EDU>, dolans_at_stripe.Colorado.EDU (Sean Dolan) wrote:
> All I am trying to do is insert a new record into a table using the
> data from another table. The query is below but won;t work... can someone
> help, please.
>
>insert into knowledge(id, product_id, short_prob, long_prob,
>short_solu, long_solu, steps) values(knowledge_seq.nextval, (
>select ik.product_id, ik.short_prob, ik.long_prob, ik.short_solu,
>ik.long_solu, ik.steps from shhd_owner.inc_to_knowledge ik where
>ik.id=24));
>
>Thanks,
>Sean

insert into knowledge(id, product_id, short_prob, long_prob, short_solu, long_solu, steps)
(select knowledge_seq.nextval, ik.product_id, ik.short_prob, ik.long_prob,

ik.short_solu, 
ik.long_solu, ik.steps from shhd_owner.inc_to_knowledge ik where 
ik.id=24);

Wessel van Alphen

(Please remove X's from e-mail account when replying) Received on Thu Jul 09 1998 - 01:16:45 CDT

Original text of this message

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