V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
luanguang
V2EX  ›  数据库

mysql 按照中文排序,怎么解决多音字问题?

  •  
  •   luanguang · Apr 23, 2019 · 2721 views
    This topic created in 2569 days ago, the information mentioned may be changed or developed.

    如题……

    3 replies    2021-03-07 15:33:09 +08:00
    6j1A6v70lEv5n2U2
        1
    6j1A6v70lEv5n2U2  
       Apr 23, 2019
    增加拼音字段
    MrLx
        2
    MrLx  
       Apr 23, 2019
    加一个首字母字段就行了
    bmxbmx3
        3
    bmxbmx3  
       Mar 7, 2021
    把拼音跟汉字也可以结合一起,比如“字_音”,这样多音字就能唯一识别出来了。pypi 有个 cn_sort 库可以试试
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   6067 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 81ms · UTC 02:48 · PVG 10:48 · LAX 19:48 · JFK 22:48
    ♥ Do have faith in what you're doing.