update批量更新某一列成其它列对应的值 postgresql 标准sql语句 update AA set name = BB.name , AA.sex = BB.sex from BB where AA.id = BB.id ; 注意不要写成 from AA,BB ,即不要把自身的表写在from后,不然会报异常 :table name specified more than once update AA set name = BB.name from AA,BB where AA.id =