2,497
社区成员
发帖
与我相关
我的任务
分享
if not Conn.InTransaction then
Conn.BeginTrans;
try
{更新资料的代码}
if Conn.InTransaction then
Conn.CommitTrans ;
except
on E:Exception do
begin
if Conn.InTransaction then
Conn.RollbackTrans ;
raise Exception.Create(E.Message);
end ;
end ;