On 20-May-01 Dave Carter wrote:
> Is this ok?
> UPDATE table1
> SET table1.field1 = table2.field1
> SELECT table1.field1, table1.field2, table2.field1, table2.field2,
> table2.field3
> FROM table1, table2
> WHERE table1.field2 BETWEEN table2.field2 AND table2.field3
> HAVING table1.field1 IS NULL;
>
No, UPDATE ... JOIN is not supported (not sure if "standard" SQL allows it).
Use a temp table, or script the updates.
check the comments :
http://www.mysql.com/doc/U/P/UPDATE.html
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php