unicode - Mysql do not consider special chars as equal on save but do it on search -
i create database
create database if not exists my_database default character set utf8 default collate utf8_general_ci; and create table
create table if not exists first_names ( id int not null auto_increment, language_id varchar(120) not null, name varchar(120) not null, primary key(id), constraint uc_first_names_parent_language unique (language_id, name) ); and want insert values
insert first_names(language_id,name) values ("pt","antónio"), ("pt","antônio"); but trigger constraint since mysql consider antónio same antônio because special chars ignored.
i change collate want follow query return antónio , antônio.
select * first_names name "antonio"; so question is: there way me create mysql database consider antónio , antônio different values inserting, consider them similar in concerns queries?
Comments
Post a Comment