Oracle real_st_astext,解决st_astext函数返回异常问题
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Oracle real_st_astext,解决st_astext函数返回异常问题相关的知识,希望对你有一定的参考价值。
create or replace function real_st_astext( geom in clob ) return clob is geometry clob; tempGeom clob; begin geometry := upper(geom); if geom like ‘(((%‘ then geometry := ‘MULTIPOLYGON‘||geom; else if geom like ‘((%‘ then tempGeom := substr(geom, instr(geom, ‘((‘)+2, length(geom)); if tempGeom like ‘%(%‘ then geometry := ‘MULTILINESTRING ‘||geom; else geometry := ‘POLYGON ‘||geom; end if; else if geom like ‘(%‘ then if geom like ‘%,%‘ then geometry := ‘LINESTRING‘||geom; else geometry := ‘POINT‘||geom; end if; end if; end if; end if; return geometry; end;
以上是关于Oracle real_st_astext,解决st_astext函数返回异常问题的主要内容,如果未能解决你的问题,请参考以下文章
oracle‘s package,function,proceture编译时无响应(解决)
Oracle做insert或者update时未提交事务导致表锁定解决办法
Oracle 11g RAC INS-06006 Passwordless SSH connectivity not set up between the following node(s) 解决方法