From: Magnus Enbom <dot@rockstorm.se>
To: pgsql-sql@postgresql.org
Subject: LIMIT 1 FOR UPDATE or FOR UPDATE LIMIT 1?
Date: Fri, 5 Apr 2002 16:08:33 +0200
Message-ID: <20020405160833.A917@ford.rockstorm.se> (raw)
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
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: dot@rockstorm.se
Subject: Re: LIMIT 1 FOR UPDATE or FOR UPDATE LIMIT 1?
In-Reply-To: <20020405160833.A917@ford.rockstorm.se>
* 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