call与execute区别

来源:互联网 发布:黑道圣徒4但丁数据 编辑:程序博客网 时间:2024/05/21 13:27

call在pl/sql与sqlplus中都可以使用,execute只能在sqlplus中使用。

call调用函数与存储过程时必须带括号,execute则不用。

例:

procedure proc_test is

v_count number;

begin

select count(*) into v_count from employees;

dbms_output.put_line(v_count);

end;


原创粉丝点击