Majhi, Akas writes:
> 1. Can I declare a function (HelperFunc) inside the main function (MainFunc)
> 2. If yes then how.
You could do it if you create the CREATE FUNCTION command in a string
variable and then use EXECUTE to run it, but the normal way would be to
declare it outside. There is usually no reason not to do that.
--
Peter Eisentraut peter_e(at)gmx(dot)net