ORACLE汉字排序 取分组最大时间记录 ebs客户别名 编码 名称

本文介绍了一种使用Oracle数据库进行复杂排序的方法,包括按客户别名的拼音、笔画及偏旁部首排序。通过示例展示了如何利用nlssort函数实现不同排序需求。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >


select account_number, organization_name, known_as
from (select account_number,
organization_name,
nvl(hop.known_as, hp.known_as) known_as,
row_number() over(partition by account_number order by hop.creation_date desc) account_fl
from hz_cust_accounts hca
left join hz_organization_profiles hop
on hca.party_id = hop.party_id
left join hz_parties hp
on hca.party_id = hp.party_id)
where account_fl = 1
客户别名 编码 名称



、使用拼音排序
  select * from t order by nlssort(field,'NLS_SORT=SCHINESE_PINYIN_M');
2、使用笔画排序
  select * from t order by nlssort(field,'NLS_SORT=SCHINESE_STROKE_M');
3、使用偏旁部首排序
  select * from t order by nlssort(field,'NLS_SORT=SCHINESE_RADICAL_M');
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值