就这么简单(
db是您的
SQLiteDatabase对象,
tableName应该在数据库中将其设置为正确的表名):
String tableName = ""; // your table nameCursor c = db.rawQuery("PRAGMA table_info(" + tableName + ")", null);if (c.moveToFirst()) { do { System.out.println("name: " + c.getString(1) + " type: " + c.getString(2)); } while (c.moveTonext());}c.close();


