This actually isn't needed in MariaDB, it has a built in feature called the "Sequence" engine.
For example, you can use the following query to get the exact same thing:
select * from seq_1_to_24;
There are more complex queries supported too, such as every 3rd number rather than every number. mariadb.com/kb/en/sequence-storage...
Thanks a lot. I did not know about the Sequence Storage Engine.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
This actually isn't needed in MariaDB, it has a built in feature called the "Sequence" engine.
For example, you can use the following query to get the exact same thing:
There are more complex queries supported too, such as every 3rd number rather than every number. mariadb.com/kb/en/sequence-storage...
Thanks a lot. I did not know about the Sequence Storage Engine.