V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
wtfedc
V2EX  ›  问与答

mysql 的创建索引不支持 where,大家怎么破的

  •  
  •   wtfedc · 2022-06-22 17:17:20 +08:00 · 419 次点击
    这是一个创建于 679 天前的主题,其中的信息可能已经有所发展或是发生改变。

    不得不说,pg 的 partial index ,用起来确实方便

    wtfedc
        1
    wtfedc  
    OP
       2022-06-22 17:20:25 +08:00
    本意不是创建索引,是创建个 constraint ,但是感觉 check 满足不了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2264 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 07:21 · PVG 15:21 · LAX 00:21 · JFK 03:21
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.