Received: from ra.sai.msu.su (ra.sai.msu.su [158.250.29.2]) by hub.org (8.9.3/8.9.3) with ESMTP id MAA98822 for ; Wed, 29 Sep 1999 12:01:51 -0400 (EDT) (envelope-from oleg@sai.msu.su) Received: from ra (ra [158.250.29.2]) by ra.sai.msu.su (8.9.1/8.9.1) with SMTP id TAA16096; Wed, 29 Sep 1999 19:56:36 +0400 (MSD) Date: Wed, 29 Sep 1999 19:56:36 +0400 (MSD) From: Oleg Bartunov X-Sender: megera@ra To: Mark Jewiss cc: pgsql-sql@postgreSQL.org Subject: Re: [SQL] Limit rows In-Reply-To: Message-ID: Organization: Sternberg Astronomical Institute (Moscow University) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Mark, did you try select * from table limit 5,10; Or I misunderstood you Oleg On Wed, 29 Sep 1999, Mark Jewiss wrote: > Date: Wed, 29 Sep 1999 16:17:03 +0100 (BST) > From: Mark Jewiss > 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 > > > > > ************ > _____________________________________________________________ Oleg Bartunov, sci.researcher, hostmaster of AstroNet, Sternberg Astronomical Institute, Moscow University (Russia) Internet: oleg@sai.msu.su, http://www.sai.msu.su/~megera/ phone: +007(095)939-16-83, +007(095)939-23-83