Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: INSERT INTO STATEMENT
Hi,
The first query is nearly ok, the from is missing :
INSERT INTO TEST1 ( ID,DESCRIPTION)
SELECT TEST.ID,TEST.DESCRIPTION
FROM TEST
WHERE TEST.ID =5
Laly.
----- Original Message -----
From: "Peta Griffith" <peta_at_dataspeed.com.au>
Newsgroups: comp.databases.oracle.server
Sent: Thursday, November 14, 2002 2:47 AM
Subject: INSERT INTO STATEMENT
> Hi All,
>
> I am have trouble coding a Insert Into Statement
>
> the below statements is basic example of the SQL
>
> INSERT INTO TEST1 ( ID,DESCRIPTION) SELECT TEST.ID,TEST.DESCRIPTION WHERE
> TEST.ID =5
>
> INSERT INTO TEST1 ( ID,DESCRIPTION) VALUES(SELECT TEST.ID,TEST.DESCRIPTION
> WHERE TEST.ID =5)
>
>
> i am trying to copy the detail from on table to another with exact
> structures
> if anyone knows the correct syntax or a better method for this it would be
> much appreciated
>
> Cheers
> Paul
>
>
Received on Wed Nov 13 2002 - 22:09:35 CST