I want to initialize one column values on Android Sqlite data-base with another column values in the same data-base. However, I used this function to do that:
public void InitializeColumnValues(){
String sql = "UPDATE \""+ DATABASE_TABLE + "\" SET \"" + Column2 +"\" = \"" + Column1 + "\"";
db.rawQuery(sql, null);
}
But, unfortunately it does not work with me! Is there any problem on its structure? or maybe in Android Sqlite data-base I need to initialize each value in column one by one based on id value!
Is there any way to do this with less time as possible?
Any help will be appreciated,
Thanks ...