Re: LIMIT modifier

From: Arjen van der Meijden <acmmailing(at)vulcanus(dot)its(dot)tudelft(dot)nl>
To: "Roderick A(dot) Anderson" <raanders(at)acm(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: LIMIT modifier
Date: 2003-12-15 17:39:39
Message-ID: 3FDDF1DB.1020108@vulcanus.its.tudelft.nl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Rod,

Have a look at the bottom of this page:
http://www.postgresql.org/docs/current/static/sql-select.html

"Nonstandard Clauses

The clauses DISTINCT ON, LIMIT, and OFFSET are not defined in the SQL
standard."

TOP x isn't in the standard as well, afaik.

Best regards,

Arjen

Roderick A. Anderson wrote:

> I'm dealing with a project that requires me to query a MS SQL Server. Not
> a PostgreSQL issue I know but I want to ask if the LIMIT modifier is SQL
> standard? MS SQL Server uses a TOP modifier.
>
> select top 1 * from xxx;
>
> Whereas all the SQL RDBMS' I've used before used
>
> select * from xxx limit 1;
>
> Any enlightenment is appreciated. (I'm putting notes in the code to
> reflect the non-standard stuff I've had to deal with.)
>
>
> TIA,
> Rod

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message C G 2003-12-15 17:47:34 Changing user
Previous Message CoL 2003-12-15 17:33:44 Re: can't get tcl installed properly