Cursor cur=db.rawQuery("select LAST_INSERT_ROWID() ",null); cur.moveToFirst(); int id = cur.getInt(0);
android sqlite 返回插入的id
原文:http://www.cnblogs.com/ggaaooppeennngg/p/3545061.html