H
henryczh
Unregistered / Unconfirmed
GUEST, unregistred user!
在sql server7中建数据库demo1,有
表a 字段:no num1 num2 num3 other
表b 字段:index_num num1 num2 num3
表a中no,other已事先录入,现想update表a如下:
update a
set num1=b.num1,num2=b.num2,num3=b.num3
where b.index_num=22 and no='NO111';
但在query analyzer中运行报错:
The column prefix 'b' does not match with a table name or alias name used in the query.
表a 字段:no num1 num2 num3 other
表b 字段:index_num num1 num2 num3
表a中no,other已事先录入,现想update表a如下:
update a
set num1=b.num1,num2=b.num2,num3=b.num3
where b.index_num=22 and no='NO111';
但在query analyzer中运行报错:
The column prefix 'b' does not match with a table name or alias name used in the query.