/**
* 获得一个表的所有列名
*@paramtablename
*@return
*/
privateListgetTableColumn(String tablename){
List list =newArrayList();
Cursor cursor =mSQLiteDatabase.rawQuery(“PRAGMA table_info(“+tablename+”)”,null);
while(cursor.moveToNext()){
String colume = cursor.getString(cursor.getColumnIndex(“name”));
list.add(colume);
}
cursor.close();
returnlist;
}