pgSQL中的update语法和标准的语法还是有不同的,他可以使用from子句指定一个源表,也可以使用returning指定返回的结果集。如:update tb_1 set id = tb_2.id from tb_2 where 条件