Re: LIMIT modifier - Mailing list pgsql-general

From Arjen van der Meijden
Subject Re: LIMIT modifier
Date
Msg-id 3FDDF1DB.1020108@vulcanus.its.tudelft.nl
Whole thread Raw
In response to LIMIT modifier  ("Roderick A. Anderson" <raanders@acm.org>)
Responses Re: LIMIT modifier  ("Roderick A. Anderson" <raanders@acm.org>)
List 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




pgsql-general by date:

Previous
From: "Roderick A. Anderson"
Date:
Subject: LIMIT modifier
Next
From: "C G"
Date:
Subject: Changing user