摘要:
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 阅读全文