Database1.StartTransaction;
try
xsquery.ApplyUpdates; {try to write the updates to the database};
Database1.Commit; {on success, commit the changes};
except
Database1.Rollback; {on failure, undo the changes};
raise; {raise the exception to prevent a call to CommitUpdates!}
xsquery.CommitUpdates; {on success, clear the cache}end;够详细了吧!!
xsquery 是query 的名字,
try
xsquery.ApplyUpdates; {try to write the updates to the database};
Database1.Commit; {on success, commit the changes};
except
Database1.Rollback; {on failure, undo the changes};
raise; {raise the exception to prevent a call to CommitUpdates!}
xsquery.CommitUpdates; {on success, clear the cache}end;够详细了吧!!
xsquery 是query 的名字,
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货