postgres 多表查询更新

发布时间:2015-05-12 08:06:44

更新一张表a的内容关联其他表作为条件

 

  1. update a set name='xx'   
  2. from t1 t1,t2 t2  
  3. where t1.age=t2.age  
  4. t1.name = a.name