简体   繁体   English

SQL 匈牙利语 区分大小写

[英]SQL hungarian case sensitive

I'm trying to save usernames in my database.我正在尝试将用户名保存在我的数据库中。 I used to use utf8_hungarian_ci but ofc that was case insensitive.我曾经使用utf8_hungarian_ci但 ofc 不区分大小写。 I wanted to change it to utf8_hungarian_cs but there isn't such an option in phpmyadmin.我想将其更改为utf8_hungarian_cs ,但 phpmyadmin 中没有这样的选项。 I'm using latin1_general_cs at the moment, which works fine, but any data with accent looks like this in my db: tészta我目前正在使用latin1_general_cs ,它工作正常,但任何带重音的数据在我的数据库中看起来都是这样的: tészta

So the question is, how can I use hungarian collation as case sensitive?所以问题是,我怎样才能使用匈牙利排序规则区分大小写?

You can try with utf8mb4_hu_0900_as_cs .您可以尝试使用utf8mb4_hu_0900_as_cs They have it in MySQL 8.0 .他们在MySQL 8.0中有它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM