From: Dennis.Jiang@thomson.com
To: pgsql-sql@postgresql.org
Cc: Dennis.Jiang@thomson.com
Subject: Does Postgresql have a similar pseudo-column "ROWNUM" as Oracle?
Date: Thu, 12 May 2005 13:07:00 -0600
Message-ID: <DCD4903594CCF34CAFE200BDF3448D8D5B291A@tshuscodenmbx01.ERF.THOMSON.COM> (raw)
Hi:
Oracle has a pseudo-column "ROWNUM" to return the sequence number in which a row was returned when selected from a table. The first row ROWNUM is 1, the second is 2, and so on.
Does Postgresql have a similar pseudo-column "ROWNUM" as Oracle? If so, we can write the following query:
select *
from (select RowNum, pg_catalog.pg_proc.*
from pg_catalog.pg_proc) inline_view
where RowNum between 100 and 200;
Thanks,
Dennis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: Dennis.Jiang@thomson.com
Subject: Re: Does Postgresql have a similar pseudo-column "ROWNUM" as Oracle?
In-Reply-To: <DCD4903594CCF34CAFE200BDF3448D8D5B291A@tshuscodenmbx01.ERF.THOMSON.COM>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox