I would like to have a query with a result like below:
1000
2000
3000
or
1
3
5
so on..I want to control results from lists for instance.
SELECT 1 — I know that I can use SELECT like this for one result line but..
and want to use the result for other queries like below:
INSERT user (number) SELECT …
I want to have users with number of 1000, 2000, 3000 …
2
Answers
Not sure if I understood your question properly.
But if you are looking for a select statement that generates a sequence without initializing variables;
the below code might help.
Let us know if you are looking for something else.