avatar
SORTING 中文 IN ORACLE# Database - 数据库
n*a
1
哪位大侠知道怎么SORTING 中文 IN ORACLE。 我试用
select field1 from globaltest where language
= 'Simplified Chinese' order by NLSSORT(field1,
'NLS_SORT=Chinese');
得到了一个ERROR,ORA-12702: invalid NLS parameter string
used in SQL function
先谢了
avatar
s*k
2

Oracle now only support binary sort for Eastern Languages
included Chinese.
So for Chinese try:
select field1 from globaltest where language
= 'Simplified Chinese' order by NLSSORT(field1,
'NLS_SORT=binary');

【在 n*****a 的大作中提到】
: 哪位大侠知道怎么SORTING 中文 IN ORACLE。 我试用
: select field1 from globaltest where language
: = 'Simplified Chinese' order by NLSSORT(field1,
: 'NLS_SORT=Chinese');
: 得到了一个ERROR,ORA-12702: invalid NLS parameter string
: used in SQL function
: 先谢了

avatar
n*a
3
So if needed, how can it be done for sorting? external?
Do you know where can get any package to do it?

【在 s*k 的大作中提到】
:
: Oracle now only support binary sort for Eastern Languages
: included Chinese.
: So for Chinese try:
: select field1 from globaltest where language
: = 'Simplified Chinese' order by NLSSORT(field1,
: 'NLS_SORT=binary');

avatar
s*k
4
In fact binary sort is a sort according to the binary
value of the double bytes character. If you are dissatisfied
with the result, I think you may have to sort by external
programs or pl/sql package of you own.
By far, I don't know where you can get the package.

【在 n*****a 的大作中提到】
: So if needed, how can it be done for sorting? external?
: Do you know where can get any package to do it?

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。