C
chur
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure TtxzszForm.ComboBox1Change(Sender: TObject);
begin
ok:=ComboBox1.Items[ComboBox1.ItemIndex];
query2.close;
query2.sql.clear;
query2.sql.add('select * from ats.db');
query2.sql.add('where At="'+ok+'"');
query2.open;
end;
我的这段程序,运行是报错如下,请问原因是什么,哪里错了?
Project MainProject.exe raised exception class EDBEngineError
with message 'Invalid use of keyword.Token:AT="1" Line Number:2'.
begin
ok:=ComboBox1.Items[ComboBox1.ItemIndex];
query2.close;
query2.sql.clear;
query2.sql.add('select * from ats.db');
query2.sql.add('where At="'+ok+'"');
query2.open;
end;
我的这段程序,运行是报错如下,请问原因是什么,哪里错了?
Project MainProject.exe raised exception class EDBEngineError
with message 'Invalid use of keyword.Token:AT="1" Line Number:2'.