免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2232 | 回复: 1
打印 上一主题 下一主题

关于排序,急 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-05-25 12:51 |只看该作者 |倒序浏览
我在LOAD的过程中提示排序不正确问题
查询后果然不对,但修改排序却不生效,重起了N次,还是一样的不生效。我是WINDOWS系统。
1> sp_helpsort
2> go

Collation Name                 Collation ID
------------------------------ ------------
altdict                                  45
altnoacc                                 39
altnocsp                                 46
binary                                   25
cyrnocs                                  64
defaultml                                20
dict                                     51
elldict                                  65
espdict                                  55
espnoac                                  57
espnocs                                  56
hundict                                  69
hunnoac                                  70
hunnocs                                  71
iso14651                                 22
noaccent                                 54
nocase                                   52
nocasep                                  53
rusnocs                                  59
scandict                                 47
scannocp                                 48
thaidict                                 21
turknoac                                 73
turknocs                                 74
utf8bin                                  24

Loadable Sort Table Name       Collation ID
------------------------------ ------------
cp932bin                                129
cyrdict                                 140
dynix                                   130
eucjisbn                                192
euckscbn                                161
gb2312bn                                137
gbpinyin                                163
rusdict                                 165
sjisbin                                 179
turdict                                 155
big5bin                                 194

Sort Order Description
                                                                    
------------------------------------------------------------------
Character Set = 190, utf8                                          
     Unicode 3.1 UTF-8 Character Set                                
     Class 2 Character Set                                          
Sort Order = 163, gbpinyin                                         
     Chinese phonetic ordering                                      
(return status = 0)

---------------------------------------------
1> sp_helpsort
2> go

Collation Name                 Collation ID
------------------------------ ------------
altdict                                  45
altnoacc                                 39
altnocsp                                 46
binary                                   25
cyrnocs                                  64
defaultml                                20
dict                                     51
elldict                                  65
espdict                                  55
espnoac                                  57
espnocs                                  56
hundict                                  69
hunnoac                                  70
hunnocs                                  71
iso14651                                 22
noaccent                                 54
nocase                                   52
nocasep                                  53
rusnocs                                  59
scandict                                 47
scannocp                                 48
thaidict                                 21
turknoac                                 73
turknocs                                 74
utf8bin                                  24

Loadable Sort Table Name       Collation ID
------------------------------ ------------
cp932bin                                129
cyrdict                                 140
dynix                                   130
eucjisbn                                192
euckscbn                                161
gb2312bn                                137
gbpinyin                                163
rusdict                                 165
sjisbin                                 179
turdict                                 155
big5bin                                 194

Sort Order Description

------------------------------------------------------------------
Character Set = 190, utf8
     Unicode 3.1 UTF-8 Character Set
     Class 2 Character Set
Sort Order = 50, bin_utf8
     Binary sort order for the ISO 10646-1, UTF-8 multibyte encodin
     g character set (utf.
(return status = 0)

这2个排序不一样,
我用
sp_configure "default sortorder id",163
来改
1> sp_configure "default sortorder id",163
2> go
You have just reconfigured ASE's default sort order. System table indexes will
be rebuilt when you reboot ASE.
Parameter Name                 Default     Memory Used Config Value
         Run Value    Unit                 Type
------------------------------ ----------- ----------- ------------
         ------------ -------------------- ----------
default sortorder id                    50           0          163
                   50 id                   static

(1 row affected)
Configuration option changed. Since the option is static, Adaptive Server must
be rebooted in order for the change to take effect.
Changing the value of 'default sortorder id' to '163' reduces the amount of
memory ASE uses by 8 K. The reduced memory may be reused when this configure
value changes, but will not be released until ASE restarts.
(return status = 0)

重起了怎么没有用呢?

论坛徽章:
0
2 [报告]
发表于 2007-05-25 13:51 |只看该作者
已经解决了,因为我有个库是FOR LOAD,没在线上,所以不行。删了就好了
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP