I have a table with an identifier and without a field, what I really want is that the raw result will be repeated without registration, if the field no is 2, then this raw repeat should be repeated twice as a result. this is my sample table structure:
id no
1 3
2 2
3 1
Now I need to get this result:
1 3
1 3
1 3
2 2
2 2
3 1
I tried to write a MySQL query to get the result as above, but failed.
source
share