关于使用ADOQuery进行多重查询的问题
我现在需要从两个表中联合检索数据,有一段是这样的:
ADOQuery1.SQL.Add('select count(*) from (select * from T_jy_xueli,T_rs_employeeinfor where T_jy_xueli.empCID=T_rs_employeeinfor.CID) where as a '+col[i]+' and '+row[j]); 程序运行时提示错误“列前缀T_rs_employeeinfor与查询所用的表名或别名不匹配” 我加上参数以后在sql server的查询分析器中运行很好,到底是怎么回事,谁可以教教我!!