I am trying to get a sequential number table from 1 to 20 million. (or 0 to 20 million)
I am rather awestruck at how difficult it\'s been to get a MySQL-compatible s
If speed is a concern, you should use LOAD DATA INFILE
which is faster than INSERT
according to mysql doc :
http://dev.mysql.com/doc/refman/5.5/en/insert-speed.html
When loading a table from a text file, use LOAD DATA INFILE. This is usually 20 times
faster than using INSERT statements. See Section 13.2.6, “LOAD DATA INFILE Syntax”.
Basically you generate a 20 million lines using your favorite language (php ?), then you load it with LOAD DATA INFILE
.
http://dev.mysql.com/doc/refman/5.5/en/load-data.html