📜  mysql 选择更新同一张表 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:10.440000             🧑  作者: Mango

代码示例1
UPDATE
    products_description pd INNER JOIN products_description pd2 ON
    (pd.products_id=pd2.products_id AND pd2.language_id=1 AND pd.language_id<>1)
SET pd.products_seo = pd2.products_seo;