【发布时间】:2015-07-03 13:45:55
【问题描述】:
我正在尝试创建以下过程
create or replace procedure format_phone (ph in out varchar2) is
begin
ph:='('||substr(ph,1,3)||
')' || substr(ph,4,6)||
'-'||substr(ph,7);
end;
/
declare
ph varchar2(11):='8006330575';
begin
format_phone(ph);
end;
/
抛出此异常:
Error starting at line 1 in command:
declare
ph varchar2(11):='8006330575';
begin
format_phone(ph);
end;
Error report:
ORA-06502: PL/SQL: خطأ رقمي أو قيمة: character string buffer too small
ORA-06512: عند "HR.FORMAT_PHONE", line 3
ORA-06512: عند line 4
06502. 00000 - "PL/SQL: numeric or value error"
【问题讨论】:
标签: oracle plsql plsqldeveloper