just a quick question: how exactly does the unique index check the if the field(s) is(are) unique when added on multiple columns?
For example, if I add a UNIQUE index on the email,password
columns, will the index check if:
- Is
email
uniqueAND
ispassword
unique, or - The combination of
email,password
is unique, as in, it would allowu1@mail.com, 123
andu2@mail.com, 123
Apologies if my thoughts seem abrupt here, I'm having difficulty in expressing them today for some reason. Thanks in advance!
No comments:
Post a Comment