From: Stephan Szabo <sszabo@megazone23.bigpanda.com>
To: Richard Rowell <rwrowell@bellsouth.net>
Cc: pgsql-sql@postgresql.org
Subject: Re: top?
Date: Thu, 3 Jan 2002 15:48:06 -0800 (PST)
Message-ID: <20020103154644.J15005-100000@megazone23.bigpanda.com> (raw)
In-Reply-To: <20020103233110.WNDG17507.imf05bis.bellsouth.net@there>
On Thu, 3 Jan 2002, Richard Rowell wrote:
> Just wondering if there was a "TOP" equivilant in Postgres?
> IE
> select top 1 * from froo
> (only returns 1 row)
select * from froo limit 1;
Usually you'll want to order as well so that you get a meaningfully
chosen row rather than whatever row happens to be scanned first.
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: sszabo@megazone23.bigpanda.com, rwrowell@bellsouth.net
Subject: Re: top?
In-Reply-To: <20020103154644.J15005-100000@megazone23.bigpanda.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