1、错误描述
2、错误原因
create or replace procedure query_student(id in int,name out varchar2) is
begin
select t.name into name from t_stu_info t where t.id = id;
end query_student;
call query_student(1,'12');
3、解决办法
本文介绍了一个PL/SQL过程中出现的错误及其原因。错误出现在一个名为query_student的过程里,该过程尝试从t_stu_info表中通过ID查询学生姓名。在调用此过程时出现了问题。文章最后给出了可能的解决办法。
1、错误描述
2、错误原因
create or replace procedure query_student(id in int,name out varchar2) is
begin
select t.name into name from t_stu_info t where t.id = id;
end query_student;
call query_student(1,'12');
8475
2万+

被折叠的 条评论
为什么被折叠?