我在使用AdoQuery中的where 条件时,出现列名无效,
我在使用AdoQuery中的where 条件时,出现列名无效,可是把同样的sql语句写到AdoQuery中的Sql属性框中就能 执行!请教为什么?谢谢!请给我E-Mail谢谢!!
coolke2002@sina.com
query1.Close;
query1.SQL.Clear;
query1.SQL.Add('select QY,THDW from xs');
query1.SQL.Add('where QY= "0001 "');
query1.Open;