📅  最后修改于: 2022-03-11 15:05:32.543000             🧑  作者: Mango
代码示例4
UPDATE
`table1` AS `dest`,
(
SELECT
*
FROM
`table2`
WHERE
`id` = x
) AS `src`
SET
`dest`.`col1` = `src`.`col1`
WHERE
`dest`.`id` = x
;