Forum OpenACS Q&A: Re: Difference between PL/SQL Procedure and PL/SQL Function

Collapse
Posted by Don Baccus on
Postgres is just as picky, it just doesn't have procedures, only functions :)

That's because there's no procedureal language "mode" in Postgresql (when you say "declare" or "begin" in SQL*Plus it invokes the PL/SQL compiler, rather than the SQL processor).  In Postgres there's only the SQL processor, and the "hook" into programmatic languages is the functional call.

function should contain a return clause and it returns a value, where as procedure may return a value or it may not return a value