Jump to content

CSV import into MYSQL


daveuk

Recommended Posts

Hi,

 

I'm attempting to import a CSV file into MYSQL, so I'm looping each row and executing an INSERT against the database. Is there anyway of doing this as a transaction? I'm concerned about data being incorrect in the CSV which would cause the import to fail. Obviously parsing the CSV would be a first start, however, I'm curious to see if this can be done.

 

Cheers

 

Dave

Link to comment
https://forums.phpfreaks.com/topic/47367-csv-import-into-mysql/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.