| From: | Harald Fuchs <hf0722x(at)protecting(dot)net> |
|---|---|
| To: | pgsql-hackers(at)postgresql(dot)org |
| Subject: | Re: Add Missing From? |
| Date: | 2004-08-09 11:08:14 |
| Message-ID: | pusmaw36xt.fsf@srv.protecting.net |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
In article <5431(dot)1092025741(at)sss(dot)pgh(dot)pa(dot)us>,
Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:
> Robert Treat <xzilla(at)users(dot)sourceforge(dot)net> writes:
>> Well, as yall have pointed out, the feature is not sql spec (for some
>> reason I thought it had been put in) so since the update syntax seems
>> quite similar to oracles, perhaps they can provide a pointer on delete
>> syntax as well? I can't seem to find my oracle syntax book, anyone
>> have one handy ?
> Didn't get any Oracle hits in a quick google, but I did find out that
> MySQL spells it USING:
> DELETE FROM target_tbl USING other_tbls WHERE ...
> This isn't a particularly compelling precedent seeing that (a) MySQL
> doesn't use our flavor of UPDATE syntax and (b) they only adopted the
> above in 4.0.2.
Actually, MySQL supports two different syntaxes for multi-table DELETEs:
1. DELETE t1,t2 FROM t1,t2,t3 WHERE t1.id=t2.id AND t2.id=t3.id;
(introduced in MySQL 4.0.0)
2. DELETE FROM t1,t2 USING t1,t2,t3 WHERE t1.id=t2.id AND t2.id=t3.id;
(introduced in MySQL 4.0.2)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Gaetano Mendola | 2004-08-09 11:19:16 | VACUUM DELAY |
| Previous Message | Gaetano Mendola | 2004-08-09 10:38:51 | Re: Postgres development model (was Re: CVS comment) |