Fill database tables with a large amount of test data

后端 未结 7 1392
长发绾君心
长发绾君心 2020-12-07 09:18

I need to load a table with a large amount of test data. This is to be used for testing performance and scaling.

How can I easily create 100,000 rows of random/junk

相关标签:
7条回答
  • 2020-12-07 10:03
    create table mydata as select * from information_schema.columns;
    insert into mydata select * from mydata;
    -- repeating the insert 11 times will give you at least 6 mln rows in the table.
    
    0 讨论(0)
提交回复
热议问题