当前位置:网站首页>Oracle Chinese sorting Oracle Chinese field sorting
Oracle Chinese sorting Oracle Chinese field sorting
2022-07-05 18:47:00 【HaHa_ Sir】
Oracle Chinese sorting Oracle Chinese field sort
One 、 Scenario description
1、 In actual development , Encountering field sorting , About the following :

2、 The demand of positive order is : A class 、 Two category 、 Three types of ; The reverse order requirement is : Three types of 、 Two category 、 A class .
3、 As you can see from the diagram , Use the default sort , Can't achieve the expected effect , that Oracle in , How to deal with Chinese sorting ?
Two 、 Problem solving
1、 Use nlssort function , Solve the problem of Chinese sorting .
2、Oracle9i Before , Chinese is sorted according to the binary code . stay oracle9i According to Pinyin added in 、 Radicals 、 Stroke sorting function . Set up NLS_SORT value :
- SCHINESE_RADICAL_M : According to the radical ( The first order )、 stroke ( The second order ) Sort
- SCHINESE_STROKE_M : According to the stroke ( The first order )、 Radicals ( The second order ) Sort
- SCHINESE_PINYIN_M : Sort by Pinyin , The default sorting method of the system is Pinyin sort
3、 Examples are as follows :
// Sort by stroke
select * from dept order by nlssort(name,'NLS_SORT=SCHINESE_STROKE_M');
// Sort by radical
select * from dept order by nlssort(name,'NLS_SORT=SCHINESE_RADICAL_M');
// Sort by Pinyin , This is the default sorting method of the system
select * from dept order by nlssort(name,'NLS_SORT=SCHINESE_PINYIN_M');
4、 Screenshot of the case :

边栏推荐
- Windows Oracle 开启远程连接 Windows Server Oracle 开启远程连接
- ROS安装报错 sudo: rosdep:找不到命令
- c期末复习
- C language makes it easy to add, delete, modify and check the linked list "suggested collection"
- The 11th China cloud computing standards and Applications Conference | China cloud data has become the deputy leader unit of the cloud migration special group of the cloud computing standards working
- MySQL数据库索引教程(超详细)
- Common time complexity
- SAP 特征 特性 说明
- ROS installation error sudo: rosdep: command not found
- The 11th China cloud computing standards and Applications Conference | cloud computing national standards and white paper series release, and Huayun data fully participated in the preparation
猜你喜欢

Share: ZTE Yuanhang 30 Pro root unlock BL magick ZTE 7532n 8040n 9041n brush mask original brush package root method Download

Use QT to traverse JSON documents and search sub objects
![[detailed explanation of AUTOSAR 14 startup process]](/img/c4/5b08b43db97d8bb10c7207005f8c0a.png)
[detailed explanation of AUTOSAR 14 startup process]

Trust counts the number of occurrences of words in the file

Interprocess communication (IPC): shared memory

Isprs2022/ cloud detection: cloud detection with boundary nets

Shang Silicon Valley Shang preferred project tutorial release

Windows Oracle 开启远程连接 Windows Server Oracle 开启远程连接

About Estimation with Cross-Validation

尚硅谷尚优选项目教程发布
随机推荐
sample_rate(采樣率),sample(采樣),duration(時長)是什麼關系
EasyCVR授权到期页面无法登录,该如何解决?
AI金榜题名时,MLPerf榜单的份量究竟有多重?
Use QT to traverse JSON documents and search sub objects
鱼和熊掌可以兼得!天翼云弹性裸金属一招鲜!
Is it safe to open an account, register and dig money? Is there any risk? Is it reliable?
Powerful tool for collection processing
The easycvr authorization expiration page cannot be logged in. How to solve it?
Find in MySQL_ in_ Detailed explanation of set() function usage
max31865模块RTD测温注意事项
All you want to know about clothing ERP is here
Interprocess communication (IPC): shared memory
《ClickHouse原理解析与应用实践》读书笔记(5)
跨境支付平台 XTransfer 的低代码实践:如何与其他中台融合是核心
7-1 链表也简单fina
c期末复习
Reading notes of Clickhouse principle analysis and Application Practice (5)
How to choose the most formal and safe external futures platform?
The 11th China cloud computing standards and Applications Conference | cloud computing national standards and white paper series release, and Huayun data fully participated in the preparation
Common time complexity