Hintswen
Hintswen

Reputation: 4007

need a way to import a large amount of data into MySQL database

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

Answers (2)

user447688
user447688

Reputation:

LOAD DATA INFILE?

Upvotes: 1

Ben Hammond
Ben Hammond

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

Related Questions