Author - Yura Sorokin

Generating Numeric Sequences in MySQL

Generating Numeric Sequences in MySQL

What is the easiest way to generate a sequence of integers in MySQL? In other words, which “SELECT <something>” statement should I write to get 0, 1, 2, … N – 1?
This is the question I have been struggling with for years and it looks like I have finally got the answer (although I […]

Read more