oracle在SQL窗口中调用存储过程sql

1.运行有参数的存储过程

DECLARE
rs_json_out VARCHAR2(512);
p_errmsg VARCHAR2(512);
BEGIN
SP_SST_GET_CARD_NO('{"P_ZDBH00":"001","P_INSUORG":"360000","P_ID0000":"02","P_SFZHAO":"350821198608233016"}',rs_json_out,p_errmsg);
dbms_output.put_line('rs_json_out=' || rs_json_out);
dbms_output.put_line('p_errmsg=' || p_errmsg);
END;

备注:存储过程名称要大写

2.运行没有参数的存储过程

begin
-- Call the procedure
run_log_delete;
end;

posted on 2022-09-28 14:43  yr1126  阅读(476)  评论(0编辑  收藏  举报