一个简单的 用row_number() over 限定 更新的例子

如果表中没有很好的列  来确定 唯一行,不防用一下这个 方法  还是比较精准的

 

update db set a=11111 from (select row_number() over ( order by a) as id ,a from #b) as   db where id=2

posted @ 2012-04-09 13:39  忙碌在路上  阅读(424)  评论(0编辑  收藏  举报