update TeachingPractise set a.textid=b.id from TeachingPractise as a inner join textarticle as b on a.bookcode =b.code and inputtime='20080505' 错误提示 消息 4104,级别 16,状态 1,第 1 行 无法绑定由多个部分组成的标识符 "a.textid"。
update TeachingPractise set textid=
(select id from textarticle where code=(select bookcode from TeachingPractise where inputtime='20080505' ))
where inputtime='20080505'
update TeachingPractise
set TeachingPractise.textid=b.[id ]
from TeachingPractise inner join textarticle as b on TeachingPractise.bookcode =b.code and inputtime='20080505'