LoadMast Table -
pkbigint(20) AI
mastidbigint(20)
loadtypeint(11)
acttypeint(11)
recdatebigint(20)
etc...
The pk is autoinc.
The problem: Records are inserted with RLC from remote devices.
If the device sends the data but does not get a response, the records are sent again until it does get a response from the server. REPLACE INTO won't work here because of the auto inc pk.
What practical solution can one do to avoid duplicate records?
Thanks
pkbigint(20) AI
mastidbigint(20)
loadtypeint(11)
acttypeint(11)
recdatebigint(20)
etc...
The pk is autoinc.
The problem: Records are inserted with RLC from remote devices.
If the device sends the data but does not get a response, the records are sent again until it does get a response from the server. REPLACE INTO won't work here because of the auto inc pk.
What practical solution can one do to avoid duplicate records?
Thanks