如何执行带有输出参数书的oracle 存储过程!我是小白还请大神解答一下! 输入的参数可以是‘家电’
createorreplaceprocedurepro_out(v_catenameINVARCHAR2,v_categoridOUTNUMBER)ASBEGINSELE...
create or replace procedure pro_out (v_catename IN VARCHAR2 ,v_categorid OUT NUMBER)
AS
BEGIN
SELECT categoryinfo.categoryid INTO v_categorid FROM categoryinfo
WHERE categoryinfo.categoryname=v_catename;
IF SQL%FOUND THEN
dbms_output.put_line('传出的参数是:'||v_categorid);
END IF;
END; 展开
AS
BEGIN
SELECT categoryinfo.categoryid INTO v_categorid FROM categoryinfo
WHERE categoryinfo.categoryname=v_catename;
IF SQL%FOUND THEN
dbms_output.put_line('传出的参数是:'||v_categorid);
END IF;
END; 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询