Uniqueness of a table attribute depends on another attribute. #6452
Unanswered
m-mattia-m
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have in MySql a table "users" which has the column "type" and "email". If I now create a record where the "type" is "user", then the email must be unique and otherwise return an error if an entry with this email already exists. If the "type" is "sleeve", then the email may occur as much as you want.
Beta Was this translation helpful? Give feedback.
All reactions