I\'m trying to insert or update a record into a sqlite database, and only update the value if the new value is greater than the old.
The schema is:
CREA
Try
INSERT OR REPLACE INTO SearchTable(Owner, Generations) SELECT ?, MAX(Generations) FROM SearchTable WHERE Owner = ?