写postgre 存储过程

如果使用 plpgsql
需要先运行这个命令:
CREATE LANGUAGE plpgsql
不然会报错:

ERROR: language "plpgsql" does not exist


关于如何些存储过程,这里说的很全面了
http://bianbian.org/technology/52.html
postgre官网解说
http://www.postgresql.org/docs/8.3/static/plpgsql.html

你可能感兴趣的:(存储)