pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Scott Marlowe <smarlowe@g2switchworks.com>
To: KeithW@narrowpathinc.com
Cc: pgsql-sql@postgresql.org
Subject: Re: Does Postgresql have a similar pseudo-column "ROWNUM" as
Date: Fri, 20 May 2005 13:42:58 -0500
Message-ID: <1116614578.31821.201.camel@state.g2switchworks.com> (raw)
In-Reply-To: <20050520181514.M54654@narrowpathinc.com>
References: <DCD4903594CCF34CAFE200BDF3448D8D5B291A@tshuscodenmbx01.ERF.THOMSON.COM>
	<1116349263.22291.129.camel@state.g2switchworks.com>
	<20050520181514.M54654@narrowpathinc.com>

On Fri, 2005-05-20 at 13:27, Keith Worthington wrote:

> Scott,
> 
> I realize that this thread went off in another direction however your
> suggestion proved very helpful for a problem that I was trying to solve.  I
> wanted the row number of a set returned by a function.  Here is a chopped
> version of the function that I wrote.
> 
> CREATE OR REPLACE FUNCTION func_bom(integer, integer)
>   RETURNS SETOF func_bom AS

SNIP

> Although I have no need to limit the output I tried it just for giggles and it
> worked fine.
> 
> SELECT * FROM func_bom(12345, 1) WHERE subline between 4 AND 6;

You're welcome.  I've saved that off to my ~/pgsql directory for future
use.  So, the thanks are back to you. :)



view thread (17+ messages)

Message-ID: <1116614578.31821.201.camel@state.g2switchworks.com>
Permalink:  ../1116614578.31821.201.camel@state.g2switchworks.com/
Also on:    postgresql.org/message-id/1116614578.31821.201.camel@state.g2switchworks.com

 · 

reply

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: smarlowe@g2switchworks.com, KeithW@narrowpathinc.com
  Subject: Re: Does Postgresql have a similar pseudo-column "ROWNUM" as
  In-Reply-To: <1116614578.31821.201.camel@state.g2switchworks.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