From: angelo.rigo@globo.com
To: josh@agliodbs.com
Cc: pgsql-php@postgresql.org
Subject: Re: timezone
Date: Thu, 1 Aug 2002 16:48:03 -0300
Message-ID: <3D3EEC5F000265C7@riosf05.globoi.com> (raw)
In-Reply-To: <200208011209.19576.josh@agliodbs.com>
it displays 20 but have no link to next records
how can i add it?
'>'-- Mensagem Original --
'>'From: Josh Berkus <josh@agliodbs.com>
'>'Reply-To: josh@agliodbs.com
'>'To: angelo.rigo@globo.com
'>'Subject: Re: [PHP] timezone
'>'Date: Thu, 1 Aug 2002 12:09:19 -0700
'>'Cc: pgsql-php@postgresql.org
'>'
'>'
'>'Angelo,
'>'
'>'> how can i display 20 results at a time and give a link to the next
20 or
'>'> 50 or whatever records i do have on the database?
'>'
'>'Use LIMIT and OFFSET, which work the same in Postgres and MySQL:
'>'
'>'SELECT nome, to_char(data, 'DD.MM.YYYY') AS data
'>' FROM aprovados
'>' ORDER BY nome ASC
'>' LIMIT 20 OFFSET 0;
'>'
'>'then
'>'
'>'SELECT nome, to_char(data, 'DD.MM.YYYY') AS data
'>' FROM aprovados
'>' ORDER BY nome ASC
'>' LIMIT 20 OFFSET 20;
'>'
'>'etc.
'>'
'>'--
'>'-Josh Berkus
'>'
'>'______AGLIO DATABASE SOLUTIONS___________________________
'>' Josh Berkus
'>' Complete information technology josh@agliodbs.com
'>' and data management solutions (415) 565-7293
'>' for law firms, small businesses fax 621-2533
'>' and non-profit organizations. San Francisco
'>'
'>'
'>'---------------------------(end of broadcast)---------------------------
'>'TIP 4: Don't 'kill -9' the postmaster
________________________________________
A busca mais veloz e precisa da internet. Acesse agora: http://www.zoom.com.br.
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-php@postgresql.org
Cc: angelo.rigo@globo.com, josh@agliodbs.com
Subject: Re: timezone
In-Reply-To: <3D3EEC5F000265C7@riosf05.globoi.com>
References: <200208011209.19576.josh@agliodbs.com> <3D3EEC5F000265C7@riosf05.globoi.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