Postgresql:带子句函数
Postgresql : with clause function
PostgreSQL 是否支持 with 子句中的函数?
oracle 具有以下功能
WITH
function add_fnc(p_id number) return number
is
begin
return p_id + 1;
end;
select add_fnc(id1) from test_tbl;
PostgreSQL (as cofemann noted), but it seems what you are looking for are temporary functions. Take a look How to create a temporary function in PostgreSQL?
中没有 CTE 功能
PostgreSQL 是否支持 with 子句中的函数? oracle 具有以下功能
WITH
function add_fnc(p_id number) return number
is
begin
return p_id + 1;
end;
select add_fnc(id1) from test_tbl;
PostgreSQL (as cofemann noted), but it seems what you are looking for are temporary functions. Take a look How to create a temporary function in PostgreSQL?
中没有 CTE 功能