I have a sqlite table: for example
CREATE TABLE TEST (id integer primary key, number integer unique, name text);
However, i need to make REPLACE without autoincrementing the id field when it updates.
For example : THE TABLE IS EMPTY
REPLACE INTO TEST (null, 23, 'Bill');
REPLACE INTO TEST (null, 52, 'Jack');
When I execute the query, SELECT * FROM TEST;
I get...
1|23|Bill
2|52|Jack
if I do...
REPLACE INTO TEST VALUES (null, 52, 'John');
from the query SELECT * FROM TEST;
i get..
1|23|Bill
3|52|John
but i need...
1|23|Bill
2|52|John
Does anyone have an idea on how do do this ?