views:

40

answers:

2

I have a file with over a million lines of data, each line is a record.

I can go through the file, read the line and do a insert, but this can take up to 2 hours. Is there a faster way like uploading a sql file?

+1  A: 

Use LOAD DATA INFILE

Quassnoi
A: 

You can use Find and replace to build an insert statement around it.

zapping