求助:update 前30条符合件条的记录.

解决方案 »

  1.   

    select top 30 a from A
      where ……
    a是你从A表中选的列,where是查询的条件
      

  2.   

    Update Tb
    set ...
    where id in(Select Top 30 id from ... where ...)
      

  3.   

    sql2005update top(30) a set ..... from tb a whre ...
      

  4.   

    update TB set colum=?  where TBid in (select top 30 TBid from tb where 条件)
      

  5.   

    2005的update支持top语法update top(30) 表 set..... where ....sql 2000udpate 表 set
    .....
    where id in (select top 30 id from 表 where ... )