hibernate:中文排序order by

转:http://wuaner.javaeye.com/blog/681614

nlssort函数的用法

NLSSORT,可以用来进行语言排序,且不影响当前会话.

用法示例:

 

拼音 SELECT * FROM TEAM ORDER BY NLSSORT(排序字段,'NLS_SORT = SCHINESE_PINYIN_M')


笔划 SELECT * FROM TEAM ORDER BY NLSSORT(排序字段,'NLS_SORT = SCHINESE_STROKE_M')


部首 SELECT * FROM TEAM ORDER BY NLSSORT(排序字段,'NLS_SORT = SCHINESE_RADICAL_M')

posted on 2011-01-19 09:38  画一个圆圈  阅读(364)  评论(0编辑  收藏  举报

导航