mysql 构造数字序列

with recursive tab as (
    select 1 as n
    union all 
    select n+1 from tab where n<100
)
select * from tab;

 

posted @ 2022-12-22 10:26  踏叶乘风  阅读(18)  评论(0编辑  收藏  举报