Reputation: 4007
I want to insert a LARGE number of rows like this:
INSERT INTO
All
(ID
,number
) VALUES ('90001', '1');
and 90001 keeps increasing for each row. is there some way to do whis without using that command once for each row?
I'm currently using phpMyAdmin and Microsoft Excell to generate the commands for the next 10,000 rows each time.
Upvotes: 1
Views: 632
Reputation: 715
have a look at [http://dev.mysql.com/doc/refman/5.0/en/loop-statement.html1
see if that gives you any pointers
Upvotes: 0