Android开发--遍历SQLite数据库下的所有表名
Cursor cursor = sqliteDatabase.rawQuery("select name from sqlite_master where type='table' order by name", null);
while (cursor.moveToNext()) {
String name = cursor.getString(0);
System.out.println("lei---name: " + name);
}
sqliteDatabase为创建的数据库对象。