本帖最后由 a735208362 于 2012-09-03 16:07:04 编辑

解决方案 »

  1.   

    如:
    select  * from Ex2_TaskList where State=1
    update Ex2_TaskList set State=2  where State=1
    State=1这个是唯一的吗?不是的话就会更新多条记录,最好是根据主键更新
      

  2.   

    update Ex2_TaskList set State=2 
    where (State=1)
    and TaskID=(select top 1 TaskID from Ex2_TaskList where State=1)
      

  3.   

    update Ex2_TaskList set State=2, StartTime='...', Info='...' where State=1后面where条件要唯一的,否则就更会新多笔了