Access数据库下如何写Update语句实现用一个表的数据更新另一个表的数据?(100分)

W

wsj1208

Unregistered / Unconfirmed
GUEST, unregistred user!
我想实现用表town更新表town1表中的数据,使用如下的语句在Sql server数据库中
是正确的,可是在Access2000中却提示语法错误。
update a set a.townName=b.TownName from town a,town1 b
where a.towncode=b.towncode
各路高手,在Access2000中该语句应该什么写?恳请赐教,不胜感激。
 
update a,b set a.townName=b.TownName
where a.towncode=b.towncode
 
试试这个:
update town1,town set town1.townName=town.TownName
where town1.towncode=town.towncode
 
感谢大家的帮助,接受答案了.
 
感谢大家的帮助,接受答案了.
 
顶部