更新一个表的字段值等于另一个表的字段值
update a
set a.ty2=b.ty1
from t2 a,t1 b
where a.n2=b.n1
更新t2表的ty2字段的值为t1表的ty1字段的值,条件是a表的n2=b表的n1

相关文章:

  • 2022-12-23
  • 2022-01-19
  • 2021-09-08
  • 2022-12-23
  • 2022-01-09
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-06-05
  • 2021-08-05
  • 2022-12-23
  • 2021-05-26
相关资源
相似解决方案