Hello!
In table X I need to update every row in a column using data from columns in table Y.
Is there any clean way to do it in mySQL? Since UPDATE seems accept no joins, I can only imagine two solutions: Either I make a script to do the job column by column (one UPDATE command for each column), or I make an empty copy of the table that I want to modify, fill it with INSERT ... SELECT and drop the old table. Any of these solutions look very, very, very bad for big tables...
What am I missing?
Thanks,
jmps
In table X I need to update every row in a column using data from columns in table Y.
Is there any clean way to do it in mySQL? Since UPDATE seems accept no joins, I can only imagine two solutions: Either I make a script to do the job column by column (one UPDATE command for each column), or I make an empty copy of the table that I want to modify, fill it with INSERT ... SELECT and drop the old table. Any of these solutions look very, very, very bad for big tables...
What am I missing?
Thanks,
jmps