Mac
V2EX  ›  PHP

生成年&月&日&i+1 这样的编号,能有避免读数据库的方法么?

  •  
  •   Mac · Sep 22, 2014 · 3050 views
    This topic created in 4336 days ago, the information mentioned may be changed or developed.
    目前的方案是读最近一条记录然后截取最后几位数。总觉得有点浪费资源。
    1 replies    2014-09-23 15:15:09 +08:00
    withinthefog
        1
    withinthefog  
       Sep 23, 2014
    redis的incrby
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2870 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 15:06 · PVG 23:06 · LAX 08:06 · JFK 11:06
    ♥ Do have faith in what you're doing.