我使用query组件,连接查询数据库,可以运行,但运行过程中出现如下错误:project bz.exe raised exception class EDBEngineError with message 'Invaild use of keyword
Token:Password
Line Number:1'.Process stopped.Use Step or Run to continue.以上是delphi的错误提示,我这部分的源代码如下:procedure TForm1.Button1Click(Sender: TObject);
begin
query1.Close;
query1.SQL.Clear;
query1.sql.Add('select Password From dl where ID='''+edit1.text+'''');
query1.Prepare;
query1.Open;
if edit2.Text=query1.FieldValues['Password'] then
flag:=1
else flag:=2;
end;
end. 望各位前辈,走过路过,指点一二,小弟感激不尽~!!!