POSTGRES update select

UPDATE gp_subscription
SET resource_catalog_code_key = c.code_key,
resource_catalog_name = c.NAME,
resource_name = c.resource_name,
catalog_format_type = c.catalog_format_type
FROM
gp_resource_catalog c
WHERE
gp_subscription.resource_catalog_id = c.ID



 



update dlv_cloud_host
set cpu_core_number = c.num_cpu
from prc_pri_vm c
where dlv_cloud_host.vm_id = c.id

posted @ 2021-12-31 20:43  爵士灬  阅读(280)  评论(0编辑  收藏  举报