List:General Discussion« Previous MessageNext Message »
From:Egor Egorov Date:December 8 2003 3:21pm
Subject:Re: primary key type is BLOB
View as plain text  
"Lemasson Sylvain" <s.lemasson@stripped> wrote:

> I try to add a primary key on a BLOB column and I have got an error (ERROR 1170: BLOB
> column 'value5' used in key specification without a key length).
> May be the answer is in the documentation but I did not find it. So how could I make
> my BLOB column a primary key?

You can create index on the prefix of the column:
	http://www.mysql.com/doc/en/Indexes.html



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



Thread
primary key type is BLOBLemasson Sylvain8 Dec
  • Re: primary key type is BLOBMartijn Tonies8 Dec
  • Re: primary key type is BLOBEgor Egorov8 Dec
  • Re: primary key type is BLOBReverend Deuce8 Dec