mysql中文排序(按照中文拼音顺序排序)
2018-07-31 本文已影响0人
onbug
正序:
select * from table_name ORDER BY CONVERT(name USING gbk);
倒序:
select * from table_name ORDER BY CONVERT(name USING gb2312) desc
正序:
select * from table_name ORDER BY CONVERT(name USING gbk);
倒序:
select * from table_name ORDER BY CONVERT(name USING gb2312) desc