update TBADDRESS set TBADDRESS.ztitle=(SELECT top 1 tem.ztitle from TBADDRESs tem where tem.zid='W000000451') where TBADDRESS.zid='W000000456'
你的TBADDRESS是什么东西?视图?

解决方案 »

  1.   

    update TBADDRESS set ztitle=tem.ztitle from (SELECT top 1 ztitle from TBADDRESs where zid='W000000451') tem where TBADDRESS.zid='W000000456'
      

  2.   

    declare @ss varchar(100)
    select @ss=ztitle from TBADDRESS where zid='W000000451'
    update TBADDRESS set ztitle=@ss where zid='W000000456'
      

  3.   

    应该没错.不是原语句吧.除非TBADDRESS也是一个查询结果,且有GROUP BY或TOP之类.