I have a table with 100 rows with double as data
a1 a2 a3...
---------
1 2 3
23 55 4
2 3 7
I am planning to use UNION ALL to make that table bigger
a1 a2 a3...
---------
1 2 3
23 55 4
2 3 7
1 2 3
23 55 4
2 3 7
1 2 3
23 55 4
2 3 7
This is for testing purposes so what do you recommend, what would be the most efficient way to do this?
This will increase the size of your table exponentially… First it inserts x records, then 2x, then 4x, then 8x… You could add
distinctortop n, etc. to the select if you just want to add the same number of records each time.BTW — not sure what you’re trying to test, but you might add something besides whole numbers to your data set — e.g., 1.01, .99, 55.7, 60, etc.
EDIT
Per your comment — if you really want to use
union allthen…