Jump to content

Recommended Posts

hi,

 

i have a problem, really big, for me :(

my boss gave me a csv file with 6000 rows

 

now i need to upload them to the database.

what is the best query to run in phpmyadmin sql query to load this faster?

the table has 25 rows but the data that my boss gave me

only needs to be inserted to 7 out of the 25 rows only.

 

is there a way to load this faster?

 

thanks!

I am fairly sure you can import a csv directly by phpmyadmin...

 

Alternatively (and thios wouldn't take long to do) you could write a php script to parse the file and generate sql to be excuted. store it in a txt file and you can insert it all that way (this would also give you option of filtering out rows or columns shoudl you wish.

hi,

 

yes. 7 of 25 rows. sorry.

hope you could help me with this.

what is the php script to run this?

 

i tried importing using csv file but i am getting some problems.

all of the items are being inserted to just 1 row instead of going to its respective rows.

attached is a copy of my csv file.

 

hope you could help me with this.

thanks!

Guest
This topic is now 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.