update a set farea=20 from (select top 500 from yy where fsex=1 and farea=null) a

解决方案 »

  1.   

    update a set farea=20 from (select top 500 * from yy where fsex=1 and farea=null) a
      

  2.   

    update yy
    set farea=20,fsex=fsex+1
    where fid  in ( select top 500 fid  from yy)
    and farea=''
      

  3.   

    update yy
    set farea=20,fsex=fsex+1
    where fid  in ( select top 500 fid  from yy)
    and farea=null
      

  4.   

    看错了!update yy
    set farea=20
    where fid  in ( select top 500 fid  from yy)
    and farea=null
    and fsex=1