pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Daniel Péder <dpeder@infoset.cz>
To: pgsql-sql@postgreSQL.org <pgsql-sql@postgreSQL.org>
Subject: RE: [SQL] Limit rows
Date: Wed, 29 Sep 1999 18:17:21 +0100
Message-ID: <01BF0AA6.E010A7A0@Dan> (raw)

Yes, in the 6.x.x. manual is the:
select * from mytab
	[ LIMIT { count | ALL } [ { OFFSET | , } count ] ] ;

-----Original Message-----
From:	Mark Jewiss [SMTP:Mark.Jewiss@knowledge.com]
Sent:	Wednesday, September 29, 1999 4:17 PM
To:	pgsql-sql@postgreSQL.org
Subject:	[SQL] Limit rows

Hello,

I'm still thinking about ways to extract specific rows of data from a
table, whilst ignoring others. i.e. I want to see rows 3-7 inclusive from
a table.

Assume that I don't have a numerical identifier - I do, but I can't use
that as rows from this table may be deleted at some point, thereby
knocking the id row out of sequence.

Basically I want to be able to do something like this:

select * from table ignore 10 limit 5;

I can't use cursors, which are ideal for this I know.

Is there such a thing in SQL or pgsql specifically? If not I'll have to
write something....

Regards,

Mark.
-- 
Mark Jewiss
Knowledge Matters Limited
http://www.knowledge.com




************




view thread (8+ messages)  latest in thread

Message-ID: <01BF0AA6.E010A7A0@Dan>
Permalink:  ../01BF0AA6.E010A7A0@Dan/
Also on:    postgresql.org/message-id/01BF0AA6.E010A7A0@Dan

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: dpeder@infoset.cz
  Subject: Re: [SQL] Limit rows
  In-Reply-To: <01BF0AA6.E010A7A0@Dan>
  References: <01BF0AA6.E010A7A0@Dan>

* 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