exchangeBill为access2000数据库中的一张表。我的delphi语句为:
procedure TForm1.Button1Click(Sender: TObject);
var
arg:string;
begin
aq.Close;
arg:='select * from exchangeBill where exchange_date>=2001-12-31 00:00:01 and exchange_date<=2002-12-31 23:59:59';
aq.SQL.Clear ;
aq.SQL.Add(arg);
aq.Open ;
end;运行后的错误信息为:
Project Project1.exe raised exception class EOleException with message 'parameter 对象被不正确的定义。提供 了不一致或不完整的信息。'.//把 arg 改为:'select * from exchangeBill where exchange_date>=2001-12-31 and exchange_date<=2002-12-31' 后能正常运行,但是符合条件的记录数为0,但
实际上应该有多条记录!如何解决类似的查询问题?