Jump to content

index and unique


Neptunus Maris

Recommended Posts

Exactly as it says on the tin. Values in a unique index cannot have duplicates. If the index comprises more than one column then the combination of values must be unique.

So if your current index values are , say
[pre]
blue |  1
blue |  2
red  |  1
red  |  3
[/pre]
you could add "blue, 3" but not another "blue, 2"
Link to comment
https://forums.phpfreaks.com/topic/23961-index-and-unique/#findComment-109006
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.