sqlite3 database.db pragma table_info( TABLE_NAME )
Cursor ti = db.rawQuery("PRAGMA table_info(" + tableName + ")", null); if (ti.moveToFirst()) { do { System.out.println("col: " + ti.getString(1)); } while (ti.moveToNext()); }
sqlite3 database.db pragma table_info( TABLE_NAME )
Cursor ti = db.rawQuery("PRAGMA table_info(" + tableName + ")", null); if (ti.moveToFirst()) { do { System.out.println("col: " + ti.getString(1)); } while (ti.moveToNext()); }