是按UNICODE顺序排列的。请看: select unicode('基') union all select unicode('客') union all select unicode('打') union all select unicode('部')结果: 22522 23458 25171 37096 select unicode('临') union all select unicode('其') union all select unicode('凭') union all select unicode('单') union all select unicode('发')结果: 20020 20854 20973 21333 21457
如果需要用并音的顺序,可以: select name from sysobjects where type = 'U' order by name collate Chinese_PRC_CI_AS
表名的排序规则是按你的这个数据库的默认排序规则来的,你可以看下数据库的属性,再看collation的相关说明。
啊!
这是按什么排序?
你看我的表
[临时]、[其他]、[凭证]、[单据]、[发件]
这算什么顺序?
如果是首字母的话,也应该是:
[单据]、[发件]
[临时]、[凭证]、[其他]
select unicode('基')
union all
select unicode('客')
union all
select unicode('打')
union all
select unicode('部')结果:
22522
23458
25171
37096
select unicode('临')
union all
select unicode('其')
union all
select unicode('凭')
union all
select unicode('单')
union all
select unicode('发')结果:
20020
20854
20973
21333
21457
select name
from sysobjects
where type = 'U'
order by name collate Chinese_PRC_CI_AS