SQL:
update temp
set temp.[乡镇名]=(select test.[乡镇名] from test where test.内部标识码 = temp.内部标识码)
Access:
update temp,test
set temp.[乡镇名]= test.[乡镇名] where test.内部标识码 = temp.内部标识码
本文介绍了一种使用SQL和Access更新表中特定字段的方法。通过联接两个表并利用内部标识码匹配记录来更新目标表中的[乡镇名]字段。
SQL:
update temp
set temp.[乡镇名]=(select test.[乡镇名] from test where test.内部标识码 = temp.内部标识码)
Access:
update temp,test
set temp.[乡镇名]= test.[乡镇名] where test.内部标识码 = temp.内部标识码

被折叠的 条评论
为什么被折叠?