读书人

多表连接update字段有关问题

发布时间: 2012-02-23 22:01:34 作者: rapoo

多表连接update字段问题
sql server2005

udpate a set a.devsn=b.spec_val from tmp_dev a,tmp_devext b where b.devcode=a.devcode and b.item_spec_id='877064'

'.' 附近有语法错误。

[解决办法]
update a set a.devsn=b.spec_val from tmp_dev a,tmp_devext b
where b.devcode=a.devcode and b.item_spec_id='877064'

[解决办法]

SQL code
update a set devsn=b.spec_val from tmp_dev a,tmp_devext b where b.devcode=a.devcode and b.item_spec_id='877064' 

读书人网 >SQL Server

热点推荐