摘要: create or REPLACE function test(val integer,val2 integer) returns integer as$$subtotal ALIAS FOR $1;--参数别名declare uint integer=subtotal;--$1第一个参数begin Raise notice 'here is %',uint; return $1+$2; end $$ language plpgsql ; select test(345,754)CREATE FUNCTION instr(varchar, integer) RETURNS in 阅读全文
posted @ 2014-03-26 17:26 Rookier 阅读(483) 评论(0) 推荐(0) 编辑