读书人

SQL语句出错了,求教?该怎么解决

发布时间: 2012-01-31 21:28:41 作者: rapoo

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干什么?

读书人网 >SQL Server

热点推荐