Re: Return table and integer value - Mailing list pgsql-novice

From Sergey Konoplev
Subject Re: Return table and integer value
Date
Msg-id CAL_0b1vn1PmTLU7Q1U8bymHMQ8c5BQPHf_TvQoDkVg8UbxTO0w@mail.gmail.com
Whole thread Raw
In response to Return table and integer value  (Sergey Gigoyan <sergey.gigoyan@gmail.com>)
List 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 by date:

Previous
From: Daniel Wood
Date:
Subject: Re: WITH HOLD ref cursors for plpgsql
Next
From: Tom Lane
Date:
Subject: Re: WITH HOLD ref cursors for plpgsql