Hi hernst42!
This is the table structure.................
create table system
`System` int(8) NOT NULL auto_increment,
`SystemName` varchar(9) NOT NULL default '',
`BrandCode` char(3) NOT NULL default '',
`SiteID` varchar(2) NOT NULL default '',
PRIMARY KEY (`System`),
KEY `SystemName` (`SystemName`),
KEY `BrandCode` (`BrandCode`)
)
==========================
show indexes from systems;
Table Non_unique Key_name Seq_in_index Column_name
systems 0 PRIMARY 1 System
systems 1 SystemName 1 SystemName
systems 1 BrandCode 1 BrandCode
systems 1 BrandCode_2 1 BrandCode
systems 1 BrandCode_2 2 SiteID
Does this stop you from having the same systemname entered more than once?
Main Topics
Browse All Topics





by: hernst42Posted on 2008-01-23 at 23:17:42ID: 20731312
multiple means the index is based on the two columns.
> Can you have the following rows?
Yes
> does both systemname and brandcode have to be unique?
Depends on the definition of the index. The information you provided does not show if it's unique or not