--按姓氏笔画排序
select * from student order by [name] collate chinese_prc_stroke_cs_as_ks_ws asc
--默认按姓氏拼音排序
select * from student order by [name] asc
--按姓氏拼音排序
select * from student order by [name] collate chinese_prc_cs_as asc
本文深入探讨了SQL中利用姓氏笔画与拼音进行排序的方法,通过具体代码实例展示了如何高效地对数据进行分类与整理,特别关注于中文姓氏的特殊排序需求。
--按姓氏笔画排序
select * from student order by [name] collate chinese_prc_stroke_cs_as_ks_ws asc
--默认按姓氏拼音排序
select * from student order by [name] asc
--按姓氏拼音排序
select * from student order by [name] collate chinese_prc_cs_as asc

被折叠的 条评论
为什么被折叠?