CREATE OR REPLACE FUNCTION test1(id INTEGER,id1 INTEGER) RETURNS INTEGER LANGUAGE plpgsql AS $$ declare count integer; begin count = (select array_position(string,'hehe19') from public.sal_emp1 where name = 'Bill31'); raise notice 'this is raise demo , param1 is %',count; return count; end; $$
标签:count,raise,自定义,pgsql,INTEGER,函数 From: https://www.cnblogs.com/shitanlaozu/p/16846571.html