Hello. I have this question. There is a table with fields id and value . The id - NOT NULL PRIMARY KEY, AUTO_INCREMENT. field id - NOT NULL PRIMARY KEY, AUTO_INCREMENT.
1) Is it possible to somehow tell MySQL that when adding a new line with a repeating id it automatically updates the already existing line.
2) The same, but when the primary key is several fields at once.
idexists or not. - alex_90