摘要:
SQLiteDatabase db = dbOpenHelper.getWritableDatabase();//数据库操作实例 db.beginTransaction(); //开始事务 try{ db.execSQL("update person set amount= amount-10 where personid=1"); db.execSQL("update person set amount= amount+10 where personid=2"); db.setTransactionSucc... 阅读全文