oracle declare报错

oracle使用declare总是报错:PLS-00103: Encountered the symbol "end-of-file" when expecting one of the following。最终发现是oracle使用declare声明多个变量,一个begin end语句只需要使用一个declare,不能使用多个。

 

 1 declare 
 2 geoma ST_GEOMETRY:=ST_GEOMETRY.FROM_WKT('POINT(110 32)',4326);
 3 
 4 geomc SDO_GEOMETRY:=SDO_GEOMETRY('POINT(110 32)',4326);
 5 
 6 begin
 7 
 8   dbms_output.put_line(sdo_Geom.SDO_BUFFER(geomc,1000,1,'unit=m ').get_wkt());
 9  
10 end;

 

posted @ 2018-07-24 14:05  shine_pan  阅读(1492)  评论(0)    收藏  举报