1

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.

2 Answers 2

1

LOAD DATA INFILE?

Sign up to request clarification or add additional context in comments.

1 Comment

doesn't help me... that's just as bad as me pasting the commands in. I need a loop so I can tell it what to start/finish at and let it to the rest... not make me generate a list of commands then upload it.
0

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

see if that gives you any pointers

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.