Update test Set flag=1 where flag=0 and id in(select Top 3 id from test)//id是你表中的标识字段,或者换为其他标识字段都可以啊!