In SQLite how do I copy data from one column to another in the same database table?
1 Answer
Try this:
UPDATE tableName SET destinationField = sourceField 2 Comments
Mike 'Pomax' Kamermans
What if that results in
foreign key mismatch - "someOtherTable" referencing "tableName": UPDATE tableName SET destinationField = sourceField? (where someOtherTable references the source field, which we're not touching).ozcanyarimdunya
This sql may require where clause, so just add
where 1=1 at the end of script!