pg库批量插入数据
create or replace function aa1(a2 bigint) returns void
AS
LANGUAGE plpgsql;
select aa1(3::bigint);
case when else end
select CASE WHEN r.name in (‘1’,‘3’) THEN 1
ELSE -1 end from test r limit 2;
create or replace function aa1(a2 bigint) returns void
AS
LANGUAGE plpgsql;
select aa1(3::bigint);
select CASE WHEN r.name in (‘1’,‘3’) THEN 1
ELSE -1 end from test r limit 2;