select * from well t
WHERE
SDO_INSIDE(t.the_geom, mdsys.sdo_geometry(2003,NULL,NULL,
mdsys.sdo_elem_info_array(1,1003,3),
mdsys.sdo_ordinate_array(745999,547499, 1318999,193500)))='TRUE'
选择全国范围内的井
注意坐标,选择矩形范围的对角线数据即可,
mdsys.sdo_elem_info_array(1,1003,3),最后一个参数必须是3