Re: multiple function declarations

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: multiple function declarations
Дата
Msg-id Pine.LNX.4.44.0311180721400.639-100000@peter.localdomain
обсуждение исходный текст
Ответ на multiple function declarations  ("Majhi, Akas" <amajhi@orbitwerks.com>)
Список 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@gmx.net



В списке pgsql-sql по дате отправления:

Предыдущее
От: "Majhi, Akas"
Дата:
Сообщение: multiple function declarations
Следующее
От: Michele Bendazzoli
Дата:
Сообщение: Re: Multicolum index and primary key