`
jyangzi5
  • 浏览: 207864 次
  • 性别: Icon_minigender_1
  • 来自: 西安
社区版块
存档分类
最新评论

随便了

    博客分类:
  • test
 
阅读更多

select
if(count(a.card)=0,'010000000010',CONCAT('0010',lpad(substring(a.card,5,8)+1,8,'0'),'0')) as next_card from
(select card
from user where card like '0010%' order by card desc limit 1) a

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics