Create functions using a function

Поиск
Список
Период
Сортировка
От Gianvito Pio
Тема Create functions using a function
Дата
Msg-id 5eca56861003011350pdc14fa5l2498c260bf68a90c@mail.gmail.com
обсуждение исходный текст
Ответы Re: Create functions using a function  (Petru Ghita <petrutz@venaver.info>)
Список pgsql-sql
Hi all,<br />is there a way to define functions and/or triggers in a function?<br /><br />For example, can I create a
functionthat takes an argument and defines a function that has the name passed as argument to the first function?<br
/><br/>Something like this .....<br /><br />CREATE FUNCTION test (name varchar) RETURNS VOID AS $$<br />BEGIN<br
/>      CREATE FUNCTION name ( ) (here "name" should be expanded to the variable content) RETURNS .... <br />       
...<br/>        <br />END<br />$$<br /><br />Is there a way to do this? Thanks<br /><br /> 

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

Предыдущее
От: Aron
Дата:
Сообщение: Re: Using new.id in the WHERE condition of one UPDATE inside ON INSERT rule
Следующее
От: Petru Ghita
Дата:
Сообщение: Re: Create functions using a function