Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Insert - select into SDO_Geometry data type - how?

user11440683Jul 17 2013 — edited Jan 28 2018

Hi,

say I have a table 'geometry' and I want to insert its fields "lat" and "long" into my other table "locations" with the SDO_Geometry (object) orientated datatype field "here", what is the syntax for this (ignore the correlation, I know that bit....)

{code}

insert into locations (here)

(select (x, y)

from geometry)

{code}

Anyone tell me what to put in place of (x, y), does (lat, long) work???

thanks,

Robert.

This post has been answered by Solomon Yakobson on Jul 17 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 14 2013
Added on Jul 17 2013
2 comments
661 views