有没有简单的方法如何在Android中通过SQlite添加列或更新列?
现在我正在使用原始SQL:
public void addColumn(String tableName, String ColumnName, String ColumnType, String AdditionalDetails){
SQLiteDatabase db=dtbhelper.getWritableDatabase();
db.execSQL("ALTER TABLE "+tableName+" ADD COLUMN "+ColumnName+" "+ColumnType+" "+AdditionalDetails+";");
Log.d("TAG","FINISHED");
}
感谢