1. If I have two columns in the same unique index, does that mean mysql checks the unigue-ness based on both columns or individually?
2. I have a table with 9 columns and I want every row to be unique to one another (excluding the primary of course). This database logs our long distance phone calls so we can change departments accordingly. Obviously I dont want the same call being inserted more than once.
So my question is, do I put all these columns into a unique index (granted that i'm correct on question 1) or is there a better, more efficient way?
2. I have a table with 9 columns and I want every row to be unique to one another (excluding the primary of course). This database logs our long distance phone calls so we can change departments accordingly. Obviously I dont want the same call being inserted more than once.
So my question is, do I put all these columns into a unique index (granted that i'm correct on question 1) or is there a better, more efficient way?