MySQL Forums
Forum List  »  Newbie

Duplicate Entry on varchar field PK?
Posted by: Brain Wang
Date: July 06, 2005 05:37AM

Hi:

I test this script:

drop table if exists TMP_TEST;
create table TMP_TEST
(
col1 VARCHAR(10) ,
primary key (col1)
);
insert into TMP_TEST values('test');
insert into TMP_TEST values('TEST');

The 2th insert sql will say "Duplicate Entry 'TEST' for key 1",But the 'test' is NOT equale to 'TEST' string!
How to resolve this problem?
Thanks!

Options: ReplyQuote


Subject
Written By
Posted
Duplicate Entry on varchar field PK?
July 06, 2005 05:37AM


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.