BEGIN

   update taxi 
     set taxi.state = i.state,
         taxi.year = i.outyear,
         taxi.month = i.outmonth,
         taxi.day = i.outday,
     taxi.time = i.time
      from  ( taxi t,Inserted i )
      where t.tid = i.tid        
SET NOCOUNT ON;END在查询分析器里总是说红色那句附近有语法错误,求助各位大侠~~

解决方案 »

  1.   


      update t  
      set t.state = i.state,
      t.year = i.outyear,
      t.month = i.outmonth,
      t.day = i.outday,
      t.time = i.time
      from  taxi t,Inserted i 
      where t.tid = i.tid   
      

  2.   

    你那‘     taxi.time = i.time’前面的空格问题,好像一个空格占了2位
      

  3.   

    taxi.【time】 = i.【time】
      

  4.   

    1.taxi.time = i.time前面有占位符,删除掉,退格到上行
    2.from ( taxi t,Inserted i ) 删除两个括号