I have a table where I need a _id column that grows. However, I cannot use auto-increment due to a table containing 3 primary keys. This is in SQLite, by the way. The table already has data, so I can’t just recreate the table.
Is there a way to insert values from 1 to 148 in the _id column?
We have already tried something like this:
UPDATE table1 SET _id = (SELECT _id FROM table2)
table2 is a temporary table that contains values from 1 to 148. However, this simply updates all _id values to "1".
Any suggestions on how to solve this?
source share