Discussion:
Return table and integer value
(too old to reply)
Sergey Gigoyan
2013-02-17 18:28:48 UTC
Permalink
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 )?
Sergey Konoplev
2013-02-20 05:03:55 UTC
Permalink
On Sun, Feb 17, 2013 at 10:28 AM, Sergey Gigoyan
Post by Sergey Gigoyan
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: ***@gmail.com
--
Sent via pgsql-novice mailing list (pgsql-***@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-novice
Loading...