0

does PostgreSQL support function in with Clause? oracle has the functionality as below

WITH
  function add_fnc(p_id number) return number
  is
  begin
    return p_id + 1; 
  end;
select add_fnc(id1) from test_tbl;
Vibhuti Salvi
  • 25
  • 1
  • 4

1 Answers1

0

There is no such thing as CTE functions in 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?

Julius Tuskenis
  • 1,323
  • 8
  • 13