Mysql 2.23.45 win98.
I create a table "user".
Field    Type    Null    Key    Default    Extra
id    char(10)
userName    char(20)
I type " alter table user add primary key (id);". It work fine. "alter table
user drop primary key;". Work fine. But "alter table user add primary key
(userName)" didn't work. It print "ERROR 1062: Duplicate entry 'a' for key
1". What's wrong? Help me.


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