Subject | Re: [firebird-support] non-ansi LIMIT on DELETE |
---|---|
Author | Ann W. Harrison |
Post date | 2007-01-20T21:03:19Z |
jrmrenegade wrote:
Regards,
Ann
>Not that I approve, but you could use the RDB$DB_KEY
> However, apparently PostgreSQL has a unique identifier called a ctid
> for each row that can be utilized in with a subquery like so:
>
> DELETE FROM a WHERE ctid=(SELECT ctid FROM a WHERE b=3 LIMIT 1);
>
> which is the function equivalent of MySQL's:
>
> DELETE FROM a WHERE b=3 LIMIT 1;
>
>
> So my question is: Is there any technique that I can apply to
> "emulate" the LIMIT option for DELETE statements in Firebird?
>
Regards,
Ann