CREATE OR REPLACE FUNCTION "BI_BUF_FIN".procedure_name(mmonth text)
RETURNS void
LANGUAGE plpgsql
VOLATILE
AS $$
begin
delete from "BI_BUF_FIN"."BUF_FIN_SALES_PRICE_BP_CHANNEL"
where year_month =mmonth ;
end
$$
;
不是select调用,用exec
==============================
var sql="exec sp_rms_select_0460 "+FUNDCODE+","+DATE+","+STATUS;
var res=FR.remoteEvaluate('=sql("dbbasedata","'+sql+'",1,1)');
=====
var sql="exec 存储过程名称 "+参数1+","+参数2+","+参数3;
var res=FR.remoteEvaluate('=sql("数据库连接","'+sql+'",1,1)');