I’m migratting a MS Access system into a mySQL system with PHP PDO. Everything’s ok until PHP stop readding some records on an Access table. This table has an ID field that’s a Long Integer datatype. I don’t know why but the ID starts from 0 to 16949 then jumps to 36573745 and ends at 36581986. These higher numbers the PDO doesn’t read, I can’t figure out why.
Anyway to workaround this, I’m trying to UPDATE these higher numbers to continue the normal sequence of the lower ID’s. But Access can’t understand my query and I don’t know how to make it run.
This is the query
UPDATE Validador_Manut SET ID = (
SELECT (Max(ID) + 1) FROM Validador_Manut WHERE ID < 100000
) WHERE ID > 100000
It’s shows me this error Uperation must use an updatable query.
If you just want to lower the IDs > 100000 to consecutive numbers after 16949
then why don’t you try simply this?
36573745 – 36556795 = 16950