select WW from table2 where WW=table1.AA
----------------------------------------
服务器: 消息 107,级别 16,状态 3,行 1
列前缀 'table1' 与查询中所用的表名或别名不匹配。已经提示不匹配了
----------------------------------------
服务器: 消息 107,级别 16,状态 3,行 1
列前缀 'table1' 与查询中所用的表名或别名不匹配。已经提示不匹配了
第一句中的table1没有出现在from子句里,当然无法判断了。
select a.WW from table2,table1 where table2.WW=table1.AA