sql 按名称首字母拼音排序

SELECT * FROM t_sys_material
ORDER BY CONVERT (material_name USING gbk);

SELECT * FROM t_sys_material
ORDER BY CONVERT (material_name USING gb2312) DESC;

 

    原文作者:Marttin2
    原文地址: https://blog.csdn.net/qq_39822451/article/details/103834313
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞