巧用SQL实现连续编号
来源:互联网 发布:相似度算法实例 编辑:程序博客网 时间:2024/05/22 15:40
select id=a.id+b.id+c.id+d.id
from(
select id=0 union all select 1
union all select id=2 union all select 3
union all select id=4 union all select 5
union all select id=6 union all select 7
union all select id=8 union all select 9
) a,(
select id=0 union all select 10
union all select id=20 union all select 30
union all select id=40 union all select 50
union all select id=60 union all select 70
union all select id=80 union all select 90
) b,(
select id=0 union all select 100
union all select id=200 union all select 300
union all select id=400 union all select 500
union all select id=600 union all select 700
union all select id=800 union all select 900
) c,(
select id=0 union all select 1000
union all select id=2000 union all select 3000
union all select id=4000 union all select 5000
union all select id=6000 union all select 7000
union all select id=8000 union all select 9000
) d
order by id
- 巧用SQL实现连续编号
- SQL 获取连续编号中断号的最小值
- SQL 获取连续编号中断号的最小值
- 如何使用SQL语句查询连续编号中缺失的编号?
- DataGrid利用模板列实现自动连续编号
- ADO 实现ACCESS文本型自动连续编号
- DataGrid利用模板列实现自动连续编号
- 连续数据,顺序编号
- (sql妙用) 实现 数据集自动编号
- 在SQL 2000中实现自动编号
- sql触发器实现自动编号格式
- datalist分页后连续编号
- sql server 使用奇偶order编号实现排序任意调整
- 在论坛中出现的比较难的sql问题:4(row_number函数+子查询 分组连续编号问题)
- SQL自动编号
- sql 自动编号
- SQL自定义订单编号
- SQL 分组编号
- 开票统计涉及到连号处理
- 指针
- 有关JAVA修改 Lotus的密码
- OpenCV读取的视频格式
- el表达式常用语句
- 巧用SQL实现连续编号
- error C2146:和error C4430:的错误
- 触发器自动维护已用
- SetWindowLong GetWindowLong
- Google App Engine错误解决方案之Class com.xxx.xxx does not seem to have been enhanced. You may want to rerun the enhancer and check for
- 浏览功能
- 自已做标识列的例子 不自动重排编号 而是自动补号
- MIDP高低级界面开发
- 二级缓存配置