【发布时间】:2021-08-23 12:38:48
【问题描述】:
我想为下面的选择语句创建存储过程是我创建的过程,但它给数据输出空白
CREATE OR REPLACE PROCEDURE public.deactivate_unpaid_accounts()
LANGUAGE 'sql'
AS $BODY$
select * from employees where salary=10000
$BODY$;
CALL deactivate_unpaid_accounts();
【问题讨论】:
-
Postgres 9.5 是 no longer supported(并且不支持存储过程)。您应该尽快计划升级。
标签: stored-procedures postgresql-9.5