Re: getting the number of rows affected by a query

Поиск
Список
Период
Сортировка
От Raymond O'Donnell
Тема Re: getting the number of rows affected by a query
Дата
Msg-id 473D923B.7000902@iol.ie
обсуждение исходный текст
Ответ на Re: getting the number of rows affected by a query  (Sam Mason <sam@samason.me.uk>)
Ответы Re: getting the number of rows affected by a query
Список pgsql-general
On 16/11/2007 10:02, Sam Mason wrote:

>   SELECT COUNT(*) FROM (
>     DELETE FROM foo RETURNING 1) x;

I haven't played with this yet, but AFAICS this will simply return the
integer value "1".

Ray.

---------------------------------------------------------------
Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland
rod@iol.ie
---------------------------------------------------------------

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

Предыдущее
От: Thomas Finneid
Дата:
Сообщение: postgres 8 on solaris 9
Следующее
От: Sam Mason
Дата:
Сообщение: Re: getting the number of rows affected by a query