pgsql跨表去执行语句 --这种是进行分组后排序,再生成组内行号,from后面只会生成一张临时表,效率相对来说比较高 update hr_authority_catalog t2 set catalog_description = t1.code from ( select * from aaaaa ) t1 where t1."name" = t2."catalog_name"; 自己记录方便之后拿出来使用