Re: retrieving specified rows

From: "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: retrieving specified rows
Date: 2006-04-21 08:27:17
Message-ID: 20060421082717.GD25454@webserv.wug-glas.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

am 21.04.2006, um 14:59:23 +1000 mailte kadil folgendes:
> Does anyone have an elegant way (sql) to query:
>
> select (various columns) from (several joined tables) where
> (resultset_row_numbers is between specified_first_row and
> specified_last_row)

LIMIT and OFFSET

select foo from bla oder by 1 limit 2 offset 3;

HTH, Andreas
--
Andreas Kretschmer (Kontakt: siehe Header)
Heynitz: 035242/47215, D1: 0160/7141639
GnuPG-ID 0x3FFF606C http://wwwkeys.de.pgp.net
=== Schollglas Unternehmensgruppe ===

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Andrew Chambers 2006-04-21 11:52:26 Re: Colors/bold chars in a select?
Previous Message kadil 2006-04-21 04:59:23 retrieving specified rows