Skip to content
Advertisement

How Do I use or properly return a value from my PostgreSQL function?

=========================================

How do I use res in the parent function?

Advertisement

Answer

don’t specify both OUT and function returns:

if you want to use the return of function ,use select into VAR, perform will just execute function discarding its output:

finaly:

https://www.postgresql.org/docs/current/static/plpgsql.html

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement