MySQL Forums
Forum List  »  Newbie

Re: I need a column that automatically adds the new number with the old number. Possible?
Posted by: rosewood mahogany
Date: May 31, 2021 04:03AM

> for ON Duplicate Key to work for the `name` column, `name` must be a key.

You're right- the command works if I make 'name' the primary key.

The term 'primary key' seems irrational if there is only one key. It should be called "the key" not "the primary key."

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.