[EMAIL PROTECTED] wrote:
> 
> I am new to MySQL and can not find how to do this. I am running 4.0.16. Table1
> has the correct values for a common field. Table 2 (the real one) needs to be
> updated from t1 via a common field.
> 
> Can this be done with joins. And if not what is the best way.

        UPDATE Table1, Table2
        SET Table2.column=Table1.column
        WHERE ..

        http://www.mysql.com/doc/en/UPDATE.html



-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Egor Egorov
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
       <___/   www.mysql.com




-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to