List:General Discussion« Previous MessageNext Message »
From:Paul DuBois Date:February 1 2002 5:35pm
Subject:RE: what type of key is this?
View as plain text  
At 10:55 -0600 2/1/02, Rick Emery wrote:
>It's created when that field is the first field in a multi-field index.

That's always what I think at first when I see "MUL", too.
Actually, it means the column is part of a non-unique index.

>
>For example:
>
>mysql> describe mytable;
>+-------+---------+------+-----+---------+-------+
>| Field | Type    | Null | Key | Default | Extra |
>+-------+---------+------+-----+---------+-------+
>| id    | int(11) | YES  |     | NULL    |       |
>| val   | char(5) | YES  |     | NULL    |       |
>+-------+---------+------+-----+---------+-------+
>2 rows in set (0.38 sec)
>
>mysql> alter table mytable add index qq(id,val);
>
>mysql> describe mytable;
>+-------+---------+------+-----+---------+-------+
>| Field | Type    | Null | Key | Default | Extra |
>+-------+---------+------+-----+---------+-------+
>| id    | int(11) | YES  | MUL | NULL    |       |
>| val   | char(5) | YES  |     | NULL    |       |
>+-------+---------+------+-----+---------+-------+
>2 rows in set (0.00 sec)
>
>-----Original Message-----
>From: Shon Stephens [mailto:sstephens@stripped]
>Sent: Friday, February 01, 2002 10:24 AM
>To: mysql@stripped
>Subject: what type of key is this?
>
>
>i have been asked to create an sql table with a certain structure. i was
>sent a
>description of the table. the first column is desribed as having a "MUL"
>key. i don't now what that is or how to create it. can someone please help.
>
>thanks,
>shon
>
>
>
>---------------------------------------------------------------------
>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 <mysql-thread98303@stripped>
>To unsubscribe, e-mail <mysql-unsubscribe-remery=excel.com@stripped>
>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 <mysql-thread98306@stripped>
>To unsubscribe, e-mail <mysql-unsubscribe-paul=snake.net@stripped>
>Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Thread
what type of key is this?Shon Stephens1 Feb
RE: what type of key is this?Rick Emery1 Feb
  • Re: what type of key is this?Shon Stephens1 Feb
RE: what type of key is this?Paul DuBois1 Feb