MySQL
按照字典顺序排序:
ORDER BY CONVERT(xxx USING gbk)
ORACLE
按照字典顺序排序:
nlssort(xxx,'NLS_SORT=SCHINESE_PINYIN_M');
按照笔画排序:
nlssort(xxx,'NLS_SORT=SCHINESE_STROKE_M');
按照部首排序:
nlssort(xxx,‘NLS_SORT=SCHINESE_RADICAL_M’);
SQLServer
按照字典顺序排序:
ORDER BY xxx COLLATE CHINESE_PRC_CI_AS;