Re: Return table and integer value

Поиск
Список
Период
Сортировка
От Sergey Konoplev
Тема Re: Return table and integer value
Дата
Msg-id CAL_0b1vn1PmTLU7Q1U8bymHMQ8c5BQPHf_TvQoDkVg8UbxTO0w@mail.gmail.com
обсуждение исходный текст
Ответ на Return table and integer value  (Sergey Gigoyan <sergey.gigoyan@gmail.com>)
Список pgsql-novice
On Sun, Feb 17, 2013 at 10:28 AM, Sergey Gigoyan
<sergey.gigoyan@gmail.com> wrote:
> Is it possible return table (result set) and integer value from postgresql
> function (For example I want return table and row counts in that table  )?

It is. Use the row_number() window function. More information by the link below.

http://www.postgresql.org/docs/9.2/static/functions-window.html

--
Sergey Konoplev
Database and Software Architect
http://www.linkedin.com/in/grayhemp

Phones:
USA +1 415 867 9984
Russia, Moscow +7 901 903 0499
Russia, Krasnodar +7 988 888 1979

Skype: gray-hemp
Jabber: gray.ru@gmail.com


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

Предыдущее
От: Daniel Wood
Дата:
Сообщение: Re: WITH HOLD ref cursors for plpgsql
Следующее
От: Tom Lane
Дата:
Сообщение: Re: WITH HOLD ref cursors for plpgsql