oracle带select的存储过程总是错误
CREATEORREPLACEPROCEDUREfind_stu(stu_idINVARCHAR2)ISvINTEGER:=0;BEGINSELECTNAMEINTOvF...
CREATE OR REPLACE PROCEDURE find_stu(stu_id IN VARCHAR2) IS
v INTEGER :=0;
BEGIN
SELECT NAME INTO v FROM stuent WHERE ID=stu_id;
dbms_output.put_line('hello');
dbms_output.put_line(v);
END find_stu;
BEGIN
find_stu('01');
END;
每次运行都提示SYSTEM.FIND_STU无效 展开
v INTEGER :=0;
BEGIN
SELECT NAME INTO v FROM stuent WHERE ID=stu_id;
dbms_output.put_line('hello');
dbms_output.put_line(v);
END find_stu;
BEGIN
find_stu('01');
END;
每次运行都提示SYSTEM.FIND_STU无效 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询