F
Fucool
Unregistered / Unconfirmed
GUEST, unregistred user!
var
s:string;
begin
s:='select * from 抄表数据 where (单元='+chr(39)+trim(form6.DBGrid2.Fields[0].Value)+chr(39)+')';
form6.ADOQuery1.Close;
form6.ADOQuery1.SQL.Add(s);
showmessage(s)
//观察SQL语句,这里也是正确的
form6.ADOQuery1.open;
form6.ADOQuery1.Active :=true;
s:string;
begin
s:='select * from 抄表数据 where (单元='+chr(39)+trim(form6.DBGrid2.Fields[0].Value)+chr(39)+')';
form6.ADOQuery1.Close;
form6.ADOQuery1.SQL.Add(s);
showmessage(s)
//观察SQL语句,这里也是正确的
form6.ADOQuery1.open;
form6.ADOQuery1.Active :=true;