create or replace procedure test_param(p_id1 in varchar default '0')
AS v_name varchar(32);
begin
select t.name into v_name from testtable t where t.id1 = p_id1;
dbms_output.put_line('name'||v_name);
end;
这是存储过程
begin
-- Call the procedure
test_param('1');
end;
这是测试代码
为什么会报
ora-01036: 非法的变量名/编号
的错误!