我正在使用 SQL Server,在下面的查询中,我有一个问题。当我在列表中执行位置时,我不确定左侧的字段是否会与右侧的字段(来自同一个表)一起更新。
update loc
set locShortName = locName
where locid in (3,4,11,13,14,15,16,18,19,20,21,24,32,41,45,68,69,77,82,85)
update loc set locShortName = locName where locid = 3 (move to next record in the list)
update loc set locShortName = locName where locid = 4 (move to next record in the list)
update loc set locShortName = locName where locid = 11(move to next record in the list)
等等...
我认为它将采用列表中的第一个数字并解决字段值设置,然后移至列表中的下一个。
我的预期正确吗?
提前致谢。