我怎样才能找到丢失的序列? [英] How can I find the missing sequences?

查看:114
本文介绍了我怎样才能找到丢失的序列?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好专家



我有一张约有11000行的表。有一个名为Account的列,varchar(12),最后8位从1开始,现在到达21045.



现在我要插入2000行这个表使用select语句,我想找到差距。



如何找到差距?

Hello Experts

I have a table which has about 11000 row. There is a column named Account which varchar(12) And the last 8 digit starts from 1 and now arrived to 21045.

Now I am going to insert 2000 row in this table using a select statement and I want to find the gaps.

How can I find the gaps?

推荐答案

如何使用T-SQL查找缺失的身份/序列号? [ ^ ]会帮助你


这篇关于我怎样才能找到丢失的序列?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆