MySQL Forums
Forum List  »  Newbie

Re: primary key limit
Posted by: Chris Stubben
Date: March 26, 2005 07:36AM

I think in 4.1 you can store up to 1000 characters on myisam tables... Probably not a good idea.

Chris

create table tmp(a text NOT NULL, primary key(a(1000)));
Query OK, 0 rows affected (0.01 sec)

create table tmp(a text NOT NULL, primary key(a(1001)));
ERROR 1071 (42000): Specified key was too long; max key length is 1000 bytes

see also

http://dev.mysql.com/doc/mysql/en/indexes.html

Options: ReplyQuote


Subject
Written By
Posted
March 25, 2005 06:31AM
Re: primary key limit
March 26, 2005 07:36AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.