Let me explain in the current context:
I have a tokens
table which contains two columns: name
and token
.
For example, a user named "John" can be assigned an "updated" token.
However, I don't want to have two rows containing "John", "updated". However, there may be one line containing "Mathew", "updated", so primary keys cannot be used.
Is it possible to do this without executing two statements? Thank you in advance.