Re: multiple function declarations

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: "Majhi, Akas" <amajhi(at)orbitwerks(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: multiple function declarations
Date: 2003-11-18 06:22:41
Message-ID: Pine.LNX.4.44.0311180721400.639-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Michele Bendazzoli 2003-11-18 11:24:23 Re: Multicolum index and primary key
Previous Message Majhi, Akas 2003-11-18 06:04:57 multiple function declarations