John Mistler <[EMAIL PROTECTED]> wrote:
> I know this is an elementary question, but I am getting two sets of
> instructions from different MySQL manuals about setting an index on a prefix
> of a column of a table.  One says to use:
> 
> KEY indexName (colName(length))
> 
> and the other says to use
> 
> INDEX indexName (colName(length))
> 
> Are both all right?  Any light shed on indexing columns would be much
> appreciated.
> 

KEY is synonym for INDEX. You can use either of them.



-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Egor Egorov
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
       <___/   www.mysql.com




-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to