<p>I need to do a join with a table/result-set/whatever that has the integers <code>n</code> to <code>m</code> inclusive. Is there a trivial way to get that without just building the table?</p>

<p>(BTW what would that type of construct be called, a "<em>Meta query</em>"?)</p>

<p><code>m-n</code> is bounded to something reasonable ( &lt; 1000's)</p>

There is no sequence number generator (
CREATE SEQUENCE
) in MySQL. Closest thing is
```
AUTO_INCREMENT
```
, which can help you construct the table.