PostgreSQL Create Function
The PostgreSQL Create Function Tool allows users to create stored Functions for a database. The following example is output for PostgreSQL.
CREATE FUNCTION public.test_function
(param1 char(25), param2 date, param3 int4)
RETURNS char AS
--insert function body here. wrap in single quotes
LANGUAGE SQL;