Re: Return from stored procedures

Поиск
Список
Период
Сортировка
От Kovacs Zoltan Sandor
Тема Re: Return from stored procedures
Дата
Msg-id Pine.LNX.4.05.10011101207310.21241-100000@pc10.radnoti-szeged.sulinet.hu
обсуждение исходный текст
Ответ на Return from stored procedures  ("Graham Vickrage" <graham@digitalplanit.com>)
Список pgsql-sql
> Probably a very simple question, but how do you define a function that
> returns the sucess of an insert or update in a function i.e.
> 
> CREATE FUNCTION foo ( varchar, int8 ) RETURNS bool
>     AS 'UPDATE table WHERE something'
>     LANGUAGE 'sql';
With SQL functions you can't (as far as I know). Try PLPGSQL ones instead,
you can use the keyword 'found'. See the documentation for details.

Zoltan 



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

Предыдущее
От: KuroiNeko
Дата:
Сообщение: Re: Re: Requests for Development
Следующее
От: Christophe Boyanique
Дата:
Сообщение: SELECT FROM t1 WHERE id IN (SELECT id FROM t2 UNION SELECT id FROM t3)