Re: Add Missing From? - Mailing list pgsql-hackers

From Josh Berkus
Subject Re: Add Missing From?
Date
Msg-id 200408090953.29505.josh@agliodbs.com
Whole thread Raw
In response to Re: Add Missing From?  (Jan Wieck <JanWieck@Yahoo.com>)
Responses Re: Add Missing From?
Re: Add Missing From?
List pgsql-hackers
People,

> >       DELETE FROM target_tbl USING other_tbls WHERE ...
>
> Feels much more understandable. The second FROM looks like a hickup.

Yes, although imagine:

DELETE FROM staff USING users JOIN logons USING (user_id)
WHERE last_logon < ( now() - '6 months');

Not as bad as FROM, but still a bit baffling to look at.   Still, I can't 
think of anything else that wouldn't require inventing a new reserved word.

Oh, and MySQL's "multi-table deletes":  PLEASE tell me that's not 
SQL-standard.

-- 
Josh Berkus
Aglio Database Solutions
San Francisco


pgsql-hackers by date:

Previous
From: Shridhar Daithankar
Date:
Subject: Re: lpthread errors while compiling 8.0beta
Next
From: Josh Berkus
Date:
Subject: Re: Changing the type of timestamp columns