pgsql 表关联update语句的写法

update t_point 
set orgcode=gpd.orgcode from 
(select gp.pointinfos_id,g.orgcode from t_point_group_t_point gp 
left join t_point_group g on g.id=gp.pointgroup_id) as gpd 
where gpd.pointinfos_id=t_point.id

你可能感兴趣的:(pgsql 表关联update语句的写法)