Re: SQL return value...

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: SQL return value...
Дата
Msg-id 4357487F.9070609@archonet.com
обсуждение исходный текст
Ответ на SQL return value...  ("Cristian Prieto" <cristian@clickdiario.com>)
Список pgsql-general
Cristian Prieto wrote:
> This is maybe a really newbie question, but, when I have an SQL function
> like that:
>
> $$
> Insert into mytable (id, name) values ($1, $2);
> $$
>
> What return value suppose to return?

Either return "void" or return "boolean" and add a "SELECT true;"
statement to the end of your function.

--
   Richard Huxton
   Archonet Ltd

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

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: Create GLOBAL TABLE
Следующее
От: Richard Huxton
Дата:
Сообщение: Re: server , client encoding issue