当前位置:网站首页>Explore the database, Chinese field sorting, what is it
Explore the database, Chinese field sorting, what is it
2022-07-21 18:36:00 【Wu Yongheng】
Problem description : In the database , Sorting of Chinese fields , Ascending Descending , What is the competition behind ?
Tools used :
mysql database ,jdk Self contained native2ascii.exe
say something native2ascii Tool use :
It's installation jdk The self-contained encoding converter , After configuring the system environment variables , It can be called anywhere .
Open the command line , Input :native2ascii enter Chinese characters can be transferred unicode code .
Can also be .txt Wait for the text document to be converted to the specified code , There is no demonstration here .
Prepare a table , Some of the data
Just start , First try sorting by name
result , Zhang Hao was the first , Qin Si is at the end , It's not supposed to be sorted by pinyin or strokes
analysis : Zhang Hao is in front of Zhang Fei , explain ‘ Hao ’ Greater than ‘ Not ’
verification : The bottom layer is unicode Code size
So that's it :
There is a problem in the extension : Change the code of the database into gbk, Whether the sorting rule is satisfied , Still sort according to the size of the code
Create a new one gbk Coded database , Key list , insert data :
Sort : The order of discovery is different from the coding just now
verification : Use online tools to get Chinese characters gbk code
http://mytju.com/classcode/tools/encode_gb2312.asp
Li C0EE LAN C0BC
Lin C1D6 thinking CBBC
The qin dynasty C7D8 3、 ... and C8FDThe qin dynasty C7D8 thinking CBBC
king CDF5 bright C3F7
Zhang D5C5 Not B7C7
Zhang D5C5 Hao F0A9
Conclusion : Sort by Pinyin , The first word is the same as the second word , In turn ...
About gbk Specific sorting rules of coding , Interested , I write a blog alone
边栏推荐
- table自动分页
- Okaleido tiger NFT is about to log in to the binance NFT platform. Are you looking forward to it?
- SOHO @ L2TP/IPsec Issue
- 四种网络的设计理念
- 聚乙烯亚胺(PEI)改性MIL-101(Cr)|多酸基金属有机框架材料(POM-MOF)|二茂铁改性MIL-88B|齐岳生物
- 求10 个整数中最大值
- 【云原生】SQL(及存储过程)跑得太慢怎么办?
- Four network design concepts
- Balancing and scheduling of NuMA
- Getting started with ctfshow web (file upload)
猜你喜欢
随机推荐
Tio2-fe3o4/mil-101 (CR) magnetic composite photocatalytic material | nano drug carriers with core-shell structure (siRNA pcnps)
ctfshow web入门(SSRF)
Application of carboxymethyl fluorescein 6-fam modified PNA peptide nucleic acid 6-fam-pna|cy3-pna fluorescent dye Cy3 coupling PNA peptide nucleic acid
四甲基罗丹明TRITC修饰肽核酸PNA|TRITC-PNA|荧光素标记PNA合成方法
Clwy permission management (IV) -- menu and permission module
PHP adds data to the array (array_unshift, array_push, array_splice, array_pad)
四种网络的设计理念
C4D用云渲染快不快?
注册表介绍及其维护
无码时代,企业数字化转型该如何发展?
pytorch-California House Prices
基于ssm框架的大学生社团管理系统
国内疫情反反复复,线下实体店的如何转型才能突破困境?
微信数据库句柄获取不全
Nh2-mil-125 (TI) /tio2 composite nanofibers | lanthanide metal organic framework( [email protected] )|MOF organic skeleto
Experimental requirements of cy5-pna cyanine dye Cy5 labeling PNA
Can the content of the QR code be modified after the QR code is made?
【刷题笔记】阶乘尾数
Oracle数据库中查询一个时间段内的记录,如果其中某一天的记录没有,则取最近一天的记录填充,这个SQL应该怎么写呢?
微软关闭基本身份验证,对企业与员工有什么影响?