내 패키지에서 숫자를 단어로 변환하는 PL/SQL 함수를 작성하려고합니다.숫자를 PL/SQL 단어로 변환하는 함수
내 기능 : 나는 이러한 오류를 돌봐하거나 심지어 더 나은 더 제안 할 방법을 모르는
Error: PL/SQL: Statement ignored
Error: PLS-00306: wrong number or types of arguments in call to 'REPLACE'
: 다음과 같은 오류가 나에게 제공
FUNCTION f_numbertoword(pn_number NUMBER) RETURN VARCHAR2 IS
f_numbertoword VARCHAR2(34);
BEGIN
f_numbertoword := ( <-- Here the 'Statement Ignored' error is raised
REPLACE(
REPLACE(
REPLACE(
REPLACE(
REPLACE(
REPLACE(
REPLACE(
REPLACE(
REPLACE(
REPLACE(pn_number), <-- Here the PLS-00306 error is raised
'0','zero '),
'1','one '),
'2','two '),
'3','three '),
'4','four '),
'5','five '),
'6','six '),
'7','seven '),
'8','eight '),
'9','nine ');
RETURN f_numbertoword;
END;
심미적 기능 스타일은 동일한 결과를 얻을 수 있습니다. 예 :
f_numbertoword(123);
결과 :
'one two three'
감사
위대한, 고마워요 @ 코도 –