Eldon, Monday, March 18, 2002, 3:00:30 AM, you wrote: EZ> How can I update the values of a column in one table from the values in a EZ> second table where there is are matching columns in the two tables using EZ> mysql. Table1 EZ> has columns DonorID and DonorPhone. Table2 has columns PersonID and EZ> PersonPhone. I want to sent Table1.DonorID = Table2.PersonID where EZ> Table2.PersonPhone = Table1.DonorPhone. Does UPDATE do this?
In a single SQL statement no. MySQL doesn't curently support updates that uses several tables, this is in our future plans. EZ> Eldon Ziegler -- For technical support contracts, goto https://order.mysql.com/ This email is sponsored by Ensita.net http://www.ensita.net/ __ ___ ___ ____ __ / |/ /_ __/ __/ __ \/ / Victoria Reznichenko / /|_/ / // /\ \/ /_/ / /__ [EMAIL PROTECTED] /_/ /_/\_, /___/\___\_\___/ MySQL AB / Ensita.net <___/ www.mysql.com --------------------------------------------------------------------- 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