"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