日期:2014-05-18  浏览次数:20504 次

SQL语句出错了,求教??
update   conmas_all   set   conmas_repeat2.bpcntseq=conmas_all.bpcntseq   from   conmas_repeat2
where   conmas_repeat2.bpcseq=conmas_all.bpcseq   and   conmas_repeat2.ctcusn=conmas_all.ctcusn


消息4104,级别16,状态1,第2   行

无法绑定由多个部分组成的标识符 "conmas_repeat2.bpcntseq "。

------解决方案--------------------
update conmas_all
set conmas_all.bpcntseq =conmas_repeat2.bpcntseq--位置放反了
from conmas_repeat2
where conmas_repeat2.bpcseq=conmas_all.bpcseq and conmas_repeat2.ctcusn=conmas_all.ctcusn
------解决方案--------------------
老兄,你要更新的是哪一个表阿?
------解决方案--------------------
可能_搞得鬼 你去掉_看看!把字段都改了
------解决方案--------------------
哦`是啊~仔细一看你得位子写得不对啊!更新conmas_all表你绑定conmas_repeat2.bpcntseq干什么?