2012年7月10日

mysql + unidac 使用事务例子

摘要: //备注:mysql必须是使用innoDB引擎才支持事务功能,否则以下事务相关代码将失效。//SQL SERVER和Oracle还没试,明天回公司试了再发代码。procedureTForm1.btn1Click(Sender:TObject);vari,j:Integer;beginUniConnection1.Connect;trytryUniTransaction1.Connections[0].StartTransaction;UniQuery1.Params.Clear;UniQuery1.SQL.Text:='insertintouser(username,password) 阅读全文

posted @ 2012-07-10 23:11 jxgxy 阅读(2675) 评论(0) 推荐(0) 编辑

导航