From: | Daniel Péder <dpeder(at)infoset(dot)cz> |
---|---|
To: | "pgsql-sql(at)postgreSQL(dot)org" <pgsql-sql(at)postgreSQL(dot)org> |
Subject: | RE: [SQL] Limit rows |
Date: | 1999-09-29 17:17:21 |
Message-ID: | 01BF0AA6.E010A7A0@Dan |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
Yes, in the 6.x.x. manual is the:
select * from mytab
[ LIMIT { count | ALL } [ { OFFSET | , } count ] ] ;
-----Original Message-----
From: Mark Jewiss [SMTP:Mark(dot)Jewiss(at)knowledge(dot)com]
Sent: Wednesday, September 29, 1999 4:17 PM
To: pgsql-sql(at)postgreSQL(dot)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
************
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 1999-09-29 17:19:48 | Re: [SQL] Limit rows |
Previous Message | Clayton Cottingham | 1999-09-29 16:34:51 | Re: [SQL] How about a postgreSQL cookbook? (was [SQL] Subselect performance) |