这是一种更简单的方法:
Cursor ti = db.rawQuery("PRAGMA table_info(mytable)", null);if ( ti.moveToFirst() ) { do { System.out.println("col: " + ti.getString(1)); } while (ti.moveTonext());}
这是一种更简单的方法:
Cursor ti = db.rawQuery("PRAGMA table_info(mytable)", null);if ( ti.moveToFirst() ) { do { System.out.println("col: " + ti.getString(1)); } while (ti.moveTonext());}