求连续数字。。100分

Landa_Jimmy Landa_Jimmy 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
create table tab_a
(
from_a int,
to_a int,
name varchar(50)
)
insert into tab_a
select 1,5,'a' union all
select 6,12,'a' union all
select 13,15,'a' union all
select 18,20,'a' union all
select 22,35,'a' union all
select 40,45,'a' union all
select 46,50,'a'


最终结果:
1 15 a
18 20 a
22 35 a
40 50 a
...全文
评论 4
收藏 已收藏
分享
返回顶部
Landa_Jimmy
应用实例 27,579 成员 68,540 内容