我是远程MSQ数据库当程序对数据进行操作时突然网络断了,我采用如下,方法并不能解决问题:
try
if adoquery1.Active then adoquery1.Close;
adoquery1.SQL.Clear;
adoquery1.SQL.Text:='select * from autovoicecall order by id desc';
adoquery1.Open;
edit1.Text:=inttostr(adoquery1.RecordCount);
except
ShowMessage('错误');
end;
请问怎么解决此问题?
try
if adoquery1.Active then adoquery1.Close;
adoquery1.SQL.Clear;
adoquery1.SQL.Text:='select * from autovoicecall order by id desc';
adoquery1.Open;
edit1.Text:=inttostr(adoquery1.RecordCount);
except
ShowMessage('错误');
end;
请问怎么解决此问题?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货