I insert some data into the table, but sometimes it encounters other data in the table (i.e. it has the same primary key).
I would like to be able to simply overwrite this data, if there is one, instead of having mysql send me an error message saying that this is a duplicate of the primary key. I know that I can simply delete these values ββbefore starting work, but this will require a somewhat large query.
Is it possible to somehow overwrite them and stop any warnings, or am I forced to delete these values.
source
share