return types in psql function code example
Example: create function in postgresql
create [or replace] function function_name(param_list)
returns return_type
language plpgsql
as $$
declare
-- variable declaration
begin
-- logic
end;
$$
create [or replace] function function_name(param_list)
returns return_type
language plpgsql
as $$
declare
-- variable declaration
begin
-- logic
end;
$$