How do I update a col in table A, using info From table B
This question already has an answer here:
细节上很稀疏,但是像这样的东西应该让你关闭。
Update A
set IsDeleted = 1
from TableA A
join TableB B on b.ItemNumber = A.ItemNumber
where b.OrderNumber > 'XY004005'
and b.OrderNumber < 'XY500000'
链接地址: http://www.djcxy.com/p/94664.html
上一篇: 简单更新查询时出现语法错误
下一篇: 如何使用表B中的信息更新表A中的列