简体   繁体   English

需要一种将大量数据导入MySQL数据库的方法

[英]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'); INSERT INTO AllIDnumber )VALUES('90001','1');

and 90001 keeps increasing for each row. 并且90001持续增加每一行。 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. 我目前正在使用phpMyAdmin和Microsoft Excell每次为下一个10,000行生成命令。

have a look at [ http://dev.mysql.com/doc/refman/5.0/en/loop-statement.html 1 看看[ http://dev.mysql.com/doc/refman/5.0/en/loop-statement.html 1

see if that gives you any pointers 看看是否有任何指示

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM