删除带参数的存储过程

最近更新时间: 2025-02-18 16:02:00

  • 复制
    复制成功
postgres=# CREATE OR REPLACE PROCEDURE proc_1(a_int int) AS
$$
begin
   raise notice '%',a_int;
end;
$$
LANGUAGE PLPGSQL;
CREATE PROCEDURE
postgres=# drop procedure proc_1 ( a_int int);
DROP PROCEDURE
postgres=#
#也可以只指定参数的类型即可
postgres=# drop procedure proc_1 (int);   
DROP PROCEDURE
postgres=#