📜  从选择 postgresql 更新 - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:02.631000             🧑  作者: Mango

代码示例3
UPDATE
  
SET
  customer=subquery.customer,
  address=subquery.address,
  partn=subquery.partn
FROM
  (
    SELECT
      address_id, customer, address, partn
    FROM  /* big hairy SQL */ ...
  ) AS subquery
WHERE
  dummy.address_id=subquery.address_id;