update table2 set ppp=table1.picie 
from table1 
where table2.uid=table1.uid

解决方案 »

  1.   

    你的话有歧义,我理解为将表1里的内容更新到表2
    update b set b.ppp=a.picie from table1 as a,table2 as b where b.uid (select uid from table1)
      

  2.   

    就是表1的price的值本来是空的,我想将表2的ppp值给表1
      

  3.   

    update table2 set ppp=table1.price
    where table1.uid=table2.uid
      

  4.   

    update table2 set ppp=table1.picie 
    from table1,table2
    where table2.uid=table1.uid
      

  5.   

    update b set b.ppp = a.picie from table1 a join table2 b on a.uid = b.uid