Mac
V2EX  ›  PHP

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

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