OK, I thought updating a table based on values from another would be as easy as this:
UPDATE table1 SET table1.apples = table2.apples WHERE table1.oranges = table2.oranges
Those columns definitely exist. But I keep getting this error:
#1054 - Unknown column 'table2.oranges' in 'where clause'
Is there some archaic error I'm making?
UPDATE table1 SET table1.apples = table2.apples WHERE table1.oranges = table2.oranges
Those columns definitely exist. But I keep getting this error:
#1054 - Unknown column 'table2.oranges' in 'where clause'
Is there some archaic error I'm making?