sql server2005udpate a set a.devsn=b.spec_val from tmp_dev a,tmp_devext b where b.devcode=a.devcode and b.item_spec_id='877064''.' 附近有语法错误。

解决方案 »

  1.   

    update a set a.devsn=b.spec_val from tmp_dev a,tmp_devext b 
    where b.devcode=a.devcode and b.item_spec_id='877064'
      

  2.   

    udpate a set devsn=b.spec_val from tmp_dev a,tmp_devext b where b.devcode=a.devcode and b.item_spec_id='877064'
      

  3.   

    update a set devsn=b.spec_val from tmp_dev a,tmp_devext b where b.devcode=a.devcode and b.item_spec_id='877064'
      

  4.   

    可以执行了,(4377 行受影响),执行时间1分多,有没有更优的update语句,使执行效率高些?