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