我收到此错误消息:
ORA-06550:第3行第2列:PLS-00103:遇到符号“1”
当期待以下之一时:
开始函数编译指示程序子类型当前游标删除存在之前
对于oracle apex web应用程序中的此代码:
declare
1_address varchar2(4000);
1_url varchar2(32000);
1_response varchar2(3200);
begin
1_address := :P3_STREET || ',' || :P3_CITY;
if :P3_STATE is not null then
1_address := 1_address || ',' || :P3_STATE;
end if;
if :P3_COUNTRY is not null then
1_address := 1_address || ',' || :P3_COUNTRY;
end if;
1_address := replace(1_address, ' ', '+');
1_url := 'http://maps.google.com/maps/geo?q=' || 1_address || '&' ||
'output=c sv' || '&' || 'key=' || :API_KEY;
1_response := utl_http.request(1_url, APEX_APPLICATION.G_PROXY_SERVER);
:P3_RESPONSE := 1_response;
:P3_LOCATION := substr(1_response, instr(1_response, ',', 1, 2) + 1);
end;
我想将谷歌 Map 集成到我的应用程序中 .
我按照this指令,但它不起作用 .
有人有解决方案吗?
1 回答
Oracle命名约定要求(参见here):
这同样适用于PL / SQL变量名称(请参阅here):
因此,将变量名称更改为Oracle可接受的名称 . 换句话说,不要用
1
启动它们 .