日期:2014-05-17 浏览次数:20547 次
update t2 set t2.score=? from t1 where t2.[user_id]=t1.[user_id] and t1.name = 'xxx'
------解决方案--------------------
update 第二张表 set score=[yourvalue] where [user_id]=(select top 1 [user_id] from 第一张表 where [name]='yourname')
------解决方案--------------------
udpate a set a.score=分数 from a inner join b a.id=b.id where b.name='名字'