Hello, please, is this the correct syntax for copying a particular row from one table to another?
db.execSQL("insert into Route select * from " + DATABASE_TABLE + " WHERE _id = rowId");
because for some reason, when i call the method that executes this statement, all the items from the first table are copied into the second table and not the specific row i want. thanks.
this is the method call for copy:
public void copyData(long rowId){
db.execSQL("insert into Route select * from " + DATABASE_TABLE + " WHERE _id = rowId");
}
if not, could you please show me how?..