LIMIT 1 FOR UPDATE or FOR UPDATE LIMIT 1? - Mailing list pgsql-sql

From Magnus Enbom
Subject LIMIT 1 FOR UPDATE or FOR UPDATE LIMIT 1?
Date
Msg-id 20020405160833.A917@ford.rockstorm.se
Whole thread Raw
Responses Re: LIMIT 1 FOR UPDATE or FOR UPDATE LIMIT 1?
Re: LIMIT 1 FOR UPDATE or FOR UPDATE LIMIT 1?
Re: LIMIT 1 FOR UPDATE or FOR UPDATE LIMIT 1?
List pgsql-sql
Hi,

I've just been hit by a small but annoying difference between postgres(7.2)
and mysql(4.x).
In postgresql you do:

SELECT * FROM table FOR UPDATE LIMIT 1;

and in mysql you do:

SELECT * FROM table LIMIT 1 FOR UPDATE;

Is it possible for postgres to accept the mysql syntax as well?
It's not that many databases that implement LIMIT, so it would be nice if the
ones that do have the same syntax(or can accept each others variants).

-- Magnus


pgsql-sql by date:

Previous
From: Frank Joerdens
Date:
Subject: Re: Rule trouble (looks to me exactly like the example)
Next
From: Michael Adler
Date:
Subject: Re: FULL JOIN with 3 or more tables