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: Inserting values from column into object: Newbie

Re: Inserting values from column into object: Newbie

From: Paul Druker <pdruker_at_metaway.com>
Date: 2000/04/08
Message-ID: <B_LH4.3658$042.20955@typhoon.southeast.rr.com>#1/1

Have you tried regular command?

INSERT INTO control_point_geometry
  (id, geometry.sdo_gtype, geometry.sdo_point.x, geometry.sdo_point.y) SELECT b.id, 1, b.easting, b.northing FROM control_points b;

Paul

<varnera_at_my-deja.com> wrote in message news:8cnhvj$if4$1_at_nnrp1.deja.com...
> Hi,
>
> I am trying to do something I think is simple. I want to select X and Y
> coordinates (each in their own columns) into a column of
> MDSYS.SDO_GEOMETRY.
>
> INSERT INTO (SELECT a.id,
> a.geometry.sdo_gtype,
> a.geometry.sdo_point.x,
> a.geometry.sdo_point.y
> FROM control_point_geometry a)
> SELECT b.id, 1, b.easting, b.northing FROM control_points b;
>
> I get the following error:
>
> INSERT INTO (SELECT a.id,
> *
> ERROR at line 1:
> ORA-01733: virtual column not allowed here
>
> I have also tried creating a view and inserting into it. I am running
> Oracle 8i (8.1.5) with Spatial Data Option on an NT box.
>
> Much Appreciated,
> Drew
>
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
Received on Sat Apr 08 2000 - 00:00:00 CDT

Original text of this message

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