sql update table column data from other table code example
Example: sql update with field from another table
UPDATE table1
SET price=(SELECT price FROM table2 WHERE table1.id=table2.id);
UPDATE table1
SET price=(SELECT price FROM table2 WHERE table1.id=table2.id);