MySQL Forums
Forum List  »  Newbie

Re: Duplicate Entry on varchar field PK?
Posted by: Felix Geerinckx
Date: July 06, 2005 05:43AM

Brain Wang wrote:

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


create table TMP_TEST (
col1 VARCHAR(10) BINARY,
primary key (col1)
);

--
felix
Please use BBCode to format your messages in this forum.

Options: ReplyQuote


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


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.