由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Database版 - SORTING 中文 IN ORACLE
相关主题
Oracle 有这种 create partially sorted index方法吗? Error Code 01034?
sortOracle error code 12638?
Help needed: How to sort the dates in MS Accessconnect to an oracle server on anoter machine
[转载] unicode into oracle?2 problems about Oracle
菜鸟求助: 用 Oracle Sqlldr Control File 能不能改character set?Help on Oracle!!
oracle 安装求助Oracle 求助
newbie's question about oracleOracle Installation Help!!
found a way to corrupt oracle on NT求教一ORACLE问题
相关话题的讨论汇总
话题: oracle话题: sorting话题: chinese话题: sort话题: field1
进入Database版参与讨论
1 (共1页)
n*****a
发帖数: 10
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
先谢了
s*k
发帖数: 144
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
: 先谢了

n*****a
发帖数: 10
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');

s*k
发帖数: 144
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?

1 (共1页)
进入Database版参与讨论
相关主题
求教一ORACLE问题菜鸟求助: 用 Oracle Sqlldr Control File 能不能改character set?
我的oracle 怎么了?oracle 安装求助
ORACLE error code 04031newbie's question about oracle
Oracle急问found a way to corrupt oracle on NT
Oracle 有这种 create partially sorted index方法吗? Error Code 01034?
sortOracle error code 12638?
Help needed: How to sort the dates in MS Accessconnect to an oracle server on anoter machine
[转载] unicode into oracle?2 problems about Oracle
相关话题的讨论汇总
话题: oracle话题: sorting话题: chinese话题: sort话题: field1