請檢查我的程序。當我嘗試將字符串傳遞給過程時出現錯誤。如果我傳遞數字,它工作正常。PLS-00201:標識符 'd' 必須聲明爲
DECLARE
x number(2);
name varchar2(333);
PROCEDURE hello(id IN OUT Number, name in varchar2)
IS
i number(2):= 1;
mName varchar2(3000):='jjjj';
BEGIN
dbms_output.put_line('This line is in procedure');
while i < id
loop
mName:= '' || ' ohlla';
dbms_output.put_line('Id is ' || i || ' name ' || mName);
i:=i+1;
end loop;
END;
BEGIN
x := &id;
name:= &somename;
hello(x, name);
dbms_output.put_line('Last line is id= ' || x || ' Finished ');
END;
/