Re: Update a table from sum(field) from another table
Are you using version 4.1 or above?
If yes you can use subselects and do something like this:
update table1 set ordertotal = (select ... from table2 where orderid=table1.orderid)
Sergey Petrunia, Software Developer
MySQL AB, www.mysql.com
My blog:
http://s.petrunia.net/blog
Subject
Written By
Posted
Re: Update a table from sum(field) from another table
April 07, 2005 06:14AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.