N
ntjrr
Unregistered / Unconfirmed
GUEST, unregistred user!
while (not GetSuccessful) and (TryCount<3) do begin ADOConnection1.BeginTrans; try// 请问try放在交易开始之前和之后有什么区别没有? 数据库操作 ADOConnection1.CommitTrans; GetSuccessful := True; except ADOConnection1.RollBackTrans; inc(TryCount); end;