Mysql uses utf8 coding, can Chinese still be sorted by pinyin?

  1. I used knex, in the background to change that statement to knex version or knex
  2. or directly support utf-8 statement query can also
select * from tailor order by convert(province using gbk)
Mar.03,2021

it is better to create a single column to save pinyin, otherwise polysyllabic words will upset you


finally write a custom query statement with orderRaw?

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b38856-2c101.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b38856-2c101.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?