V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
magotcai
V2EX  ›  微信

微信小程序 云函数 数据库的问题

  •  
  •   magotcai · Jun 17, 2021 · 1585 views
    This topic created in 1788 days ago, the information mentioned may be changed or developed.
    数据库里,自动生成的_id 如何像 mysql 的 主键 id 一样实现有序递增呢
    2 replies    2021-06-19 14:09:03 +08:00
    hahasong
        1
    hahasong  
       Jun 17, 2021
    拿 redis 的 incr 做,取一次就加 1
    magotcai
        2
    magotcai  
    OP
       Jun 19, 2021
    @hahasong 没用到 redis,都是用云函数的。就是不想用服务器的
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5963 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 06:05 · PVG 14:05 · LAX 23:05 · JFK 02:05
    ♥ Do have faith in what you're doing.