When you specify a column with primary an index of name Primary is made on the column.
For making a column unique, you have to first make a index on it which is of type UNIQUE. So automaticallt a index is made on it. Rgds Insane ----- Original Message ----- From: "Inbal Ovadia" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, October 13, 2002 4:42 PM Subject: index in mysql > Hi all, > I have a quation about index: > In mysql, if i create table table_name with column loc_name (and another > columns), > and the col_name has PRIMARY KEY and UNIQUE constraints, > Is an index created atoumaticly on this column? > > Thanks, > Inbal > > --------------------------------------------------------------------- > Before posting, please check: > http://www.mysql.com/manual.php (the manual) > http://lists.mysql.com/ (the list archive) > > To request this thread, e-mail <[EMAIL PROTECTED]> > To unsubscribe, e-mail <[EMAIL PROTECTED]> > Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php > --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php