PLS-00103: Encountered the symbol “(” when expecting one of the following: := . ) , @ % default character The symbol “:=” was substituted for “(” to continue.
原因
在定义存储过程时参数指定了长度
-- 错误写法
procedure get_tip_data(rate_id in varchar2(40), cur_result out sys_refcursor);
-- 正确写法, 在 varchar2 后面不能限定字符串长度
procedure get_tip_data(rate_id in varchar2, cur_result out sys_refcursor);
本文解释了在PL/SQL中定义存储过程时遇到符号错误PLS-00103,原因在于不正确地为varchar2类型参数指定长度。修正方法是删除长度限制,只使用'in varchar2'。
1142





