源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

Sql语句求最小可用id

  • 时间:2021-03-24 12:44 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:Sql语句求最小可用id
select id from test a where not exists  (          select 1 from test where id=a.id+1  )  order by id  缺点,不从1开始计算。
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部