📅  最后修改于: 2022-03-11 15:05:33.345000             🧑  作者: Mango
#to copy or update a table column from another table column
UPDATE table_name1
SET column1 = (
SELECT column2
FROM table_name2
WHERE table_name1.id = table_name2.id
);