查询语句
select a.SHAPE.SDO_gtype as SDO_gtype, a.shape.sdo_srid as sdo_srid, a.shape.sdo_point.x as point_x, a.shape.sdo_point.y as point_y, a.shape.sdo_point.z as point_z, a.shape.sdo_elem_info as elem_info, a.shape.sdo_ordinates as sdo_ordinates from T_table a
插入字段值
INSERT INTO T_table (ID,SHAPE) VALUES( '10000000003', MDSYS.SDO_GEOMETRY( 2003, NULL, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3,3,22), MDSYS.SDO_ORDINATE_ARRAY(1,1, 5,7) ) );
读取字段
select t.id as region_id, sdo_util.to_gmlgeometry(t.shape) as region_location from T_table t