例如表User
ID   Name   Dep  Team
1     A      1     1
2     B      1     2现在有某个表CostID  UserID   dep    team  cost
 1   1        2       2    100
 2   2         1      1    100如果按照User表的dep 和team来更新cost,这条sql如何写呢..?
谢谢