On 30 Dec 2002, at 16:53, David T-G wrote:

> I don't know where the key length needs to be specified; I tried
> 
>   hashsum tinyblob(255) not null
> 
> but that puked at the create stage :-)

The prefix length goes with the index definition, not the column 
definition.  See http://www.mysql.com/doc/en/CREATE_TABLE.html :

|   Only the MyISAM table type supports indexing on BLOB and TEXT
|   columns. When putting an index on a BLOB or TEXT column you MUST
|   always specify the length of the index: 
|
|       CREATE TABLE test (blob_col BLOB, INDEX(blob_col(10)));


-- 
Keith C. Ivey <[EMAIL PROTECTED]>
Tobacco Documents Online
http://tobaccodocuments.org
Phone 202-667-6653

---------------------------------------------------------------------
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

Reply via email to