I want to update all the records from 'column1' of 'table1' with the data from 'column2' of 'table2'. This is my code:
UPDATE table1 SET column1 = (SELECT column2 FROM table2);
Unfortunately, I get this message:
Error Code: 1242. Subquery returns more than 1 row
What am I doing wrong?