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());
}

Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)

© 2024 Falco Tech Blog Suffusion theme by Sayontan Sinha