I am trying to rename a table in my application sqlite. To do this, I use the following command:
ourDatabase.rawQuery("ALTER TABLE " + oldName + " RENAME TO " + newName,
null);
where oldNameis the old table name, newNameis the new table name, and ourDatabaseis the instance SQLiteDatabase. But that does not work.
What mistake?
Thanks.
source
share