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
emailuniqueANDispasswordunique, or - The combination of
email,passwordis unique, as in, it would allowu1@mail.com, 123andu2@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