update 表 
  set 字段 = XXX
where id = (select top 1 from 表 where xxxxx order by id)

解决方案 »

  1.   

    update 表 
      set 字段 = XXX
    where id = (select top 1 id from 表 where xxxxx order by id)
      

  2.   

    关键是,条件有限,但可以选出很多纪录,我只需要update其中一条就可以,无论是哪一条,但必须是update一条,请问具体应该怎么写呢?拜托了!
      

  3.   

    --参考楼上的,需要修改一下update 表 
      set 字段 = XXX
    where id = (select top 1 id from 表 where xxxxx order by id)
      

  4.   

    你没有看见where id = (select top 1 id from 表 where xxxxx order by id)吗?
    已经指定1条纪录了(top 1)
      

  5.   

    set rowcount 1
    update 表 set 字段 = XXX where 条件...