日期:2011-05-02 14:53:00 来源:本站整理
sqlserver快速插入大批量持续数字[MSSQL防范]
本文“sqlserver快速插入大批量持续数字[MSSQL防范]”是由七道奇为您精心收集,来源于网络转载,文章版权归文章作者所有,本站不对其观点以及内容做任何评价,请读者自行判断,以下是其具体内容:
有时刻处于测试要求,需求在数据库里快速插入大批量持续数字,下面是实现语句.
with
l0 as (select 1 as C union all select 1 as C),--2-1
l1 as (select 1 as C from l0 as A,l0 as B),--2-2
l2 as (select 1 as C from l1 as A,l1 as B),--2-4
l3 as (select 1 as C from l2 as A,l2 as B),--2-16
l4 as (select 1 as C from l3 as A,l3 as B),--2-256
l5 as (select 1 as C from l4 as A,l4 as B)--2-256^2
select ROW_NUMBER () over (order by C) as n into Nums from l5
以上是“sqlserver快速插入大批量持续数字[MSSQL防范]”的内容,如果你对以上该文章内容感兴趣,你可以看看七道奇为您推荐以下文章:
本文地址: | 与您的QQ/BBS好友分享! |
评论内容只代表网友观点,与本站立场无关!
评论摘要(共 0 条,得分 0 分,平均 0 分)
查看完整评论