with recursive seq(no) as( select 1 no union all select no+1 no from seq where no < 100 ) select no from seq ;
select substr(concat('00000', cast(RAND() * 1000000 as int)), -6, 6)