From: Phillip Smith <phillip.smith@weatherbeeta.com.au>
To: 'Chinyi Woo' <chinyi.woo@gmail.com>
To: pgsql-sql@postgresql.org
Subject: Re: Support for SQL TOP clause?
Date: Thu, 10 Jan 2008 14:19:43 +1100
Message-ID: <00ab01c85337$a50ba690$9b0014ac@wbaus090> (raw)
In-Reply-To: <f5ba57b40801091913y53833e1dh78592e5bc4a24d57@mail.gmail.com>
SELECT *
FROM Individual
LIMIT 3
I asked the reverse question moving from PG to MSSQL :-(
-----Original Message-----
From: pgsql-sql-owner@postgresql.org [mailto:pgsql-sql-owner@postgresql.org]
On Behalf Of Chinyi Woo
Sent: Thursday, 10 January 2008 14:14
To: pgsql-sql@postgresql.org
Subject: [SQL] Support for SQL TOP clause?
Hello, everyone
Does Postgresql support query like SELECT TOP 3 * FROM Individual ? If I
use ORDER BY, I have to write non-sql code to get the first row in the
result set, which I try to avoid.
Thanks
Chinyi
THINK BEFORE YOU PRINT - Save paper if you don't really need to print this
*******************Confidentiality and Privilege Notice*******************
The material contained in this message is privileged and confidential to
the addressee. If you are not the addressee indicated in this message or
responsible for delivery of the message to such person, you may not copy
or deliver this message to anyone, and you should destroy it and kindly
notify the sender by reply email.
Information in this message that does not relate to the official business
of Weatherbeeta must be treated as neither given nor endorsed by Weatherbeeta.
Weatherbeeta, its employees, contractors or associates shall not be liable
for direct, indirect or consequential loss arising from transmission of this
message or any attachments
e-mail.
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: phillip.smith@weatherbeeta.com.au, chinyi.woo@gmail.com
Subject: Re: Support for SQL TOP clause?
In-Reply-To: <00ab01c85337$a50ba690$9b0014ac@wbaus090>
* 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