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 -> Re: Insert problems

Re: Insert problems

From: Dirk Joosen <d.joosen_at_planetinternet.nl>
Date: Wed, 17 Nov 1999 14:57:07 +0100
Message-ID: <3832B433.1CFB17BA@planetinternet.nl>


Thanks it works.

masyedkasim_at_hotmail.com wrote:

> Try this...
>
> INSERT INTO TABLE1(FIELD1, FIELD2) SELECT SEQ.NEXTVAL, FIELD2 FROM
> TABLE1 WHERE ID = 1;
>
> In article <38316312.31184EE7_at_planetinternet.nl>,
> Dirk Joosen <d.joosen_at_planetinternet.nl> wrote:
> > Hi,
> >
> > I want to do the following:
> >
> > INSERT INTO TABLE1(FIELD1, FIELD2) VALUES(SEQ.NEXTVAL, (SELECT
> > FIELD2 FROM TABLE1 WHERE ID = 1));
> >
> > The reason for this statement is that the value with id 1 is an
> > default value and I want a copy of this.
> > But it doesn't work I become ORA-00936: missing expression error
> > and I don't no why.
> > regards Dirk
> >
> >
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
Received on Wed Nov 17 1999 - 07:57:07 CST

Original text of this message

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