
数据库
guqiwei
贪心的程序员
展开
-
libpq调用postgresql有返回值的函数方法
假设数据库存在以下函数: -- Function: for_test(integer, integer) --DROP FUNCTION for_test(integer, integer); CREATE OR REPLACE FUNCTION for_test(INOUT param1 integer, INOUT param2 integer) RETURNS record A原创 2012-02-29 14:55:06 · 2195 阅读 · 0 评论 -
数据库知识随记
Postgres 恢复数据时报错: Use CREATE LANGUAGE to load the language into the database 执行: CREATE LANGUAGE 'plpgsql' 可解决。 今天在写POSTGRES函数时遇到“ SQL 状态: 42601”错误,函数怎么都不能创建,最后发现需要将过程语言由 sql改为上面创建的plpgsql即可原创 2011-12-14 11:14:48 · 846 阅读 · 0 评论