INSERT INTO B([name],[info]) SELECT [name,'10'] FROM A

 

级联更新1:
update
tb1, tb2 set tb1.a=tb2.a,tb1.b=tb2.b where tb1.id=tb2.id 级联更新2: update tb1, (select * from tb2) as tb2 set tb1.a=tb2.a,tb1.b=tb2.b where tb1.id=tb2.id 级联更新3: update (select * from tb1 group by C) as temp, tb2, tb1 set tb1.a = tb2.a, tb1.b = tb2.b where tb1.id = tb2.id and temp.id = tb2.id 级联更新4: update tb1 left join tb2 on tb1.id = tb2.id set tb1.a = tb2.a, tb1.b = tb2.b where ......

 

 

 

相关文章:

  • 2022-01-28
  • 2021-09-30
  • 2021-08-07
  • 2021-10-09
  • 2022-03-03
  • 2022-02-14
  • 2022-01-23
猜你喜欢
  • 2021-11-29
  • 2022-12-23
  • 2022-12-23
  • 2021-10-10
  • 2021-09-13
相关资源
相似解决方案