primary-key

Use accent senstive primary key in MySQL

时光怂恿深爱的人放手 提交于 2020-08-05 06:01:36
问题 Desired result : Have an accent sensitive primary key in MySQL. I have a table of unique words, so I use the word itself as a primary key (by the way if someone can give me an advice about it, I have no idea if it's a good design/practice or not). I need that field to be accent (and why not case) sensitive, because it must distinguish between, for instance, 'demandé' and 'demande' , two different inflexions of the French verb "demander". I do not have any problem to store accented words in