I am trying to update a record in a table and it's throwing the following error:
Error Code: 1062. Duplicate entry '5452' for key 'device_id'
from
update device_info set serial_number = '728015162815' , ip_address = '192.168.77.121' , location_code = '1', battery_status = 'Not Charging : 36%'
where device_id = 5452
What is going on here? I can understand this error on an insert, but this is getting thrown on an update statement.