首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > SQL Server >

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

2012-01-31 
SQL语句出错了,求教??updateconmas_allsetconmas_repeat2.bpcntseqconmas_all.bpcntseqfromconmas_repeat

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

热点排行