I'm writing an application that uses Mysql and for now my tables don't have many data in it. I want to test how my application handles a larger amount of data. In order to do that I need each row in the resultset to repeat itself several times.
I know that I can run the query and UNION it with the same query and UNION that with the same query. Is there a different way that makes it easier for me to choose how many duplications will occur?
Make sure you have a table to insert into
To generate dummy data. http://www.generatedata.com This will generate the data as well as the insert scripts.
Then Just create a massive dataset
你可以自己进行交叉连接,这会产生2 ^ n的结果,但这一切都将是肮脏的黑客
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.