Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help importing CSV file into mysql database

Status
Not open for further replies.

unomateo

IS-IT--Management
May 9, 2006
38
US
Hi,

I have a csv file with over 300 columns. I do not want to manually create the table with that many columns, then import the csv file to fill the data.

Is there a way to import the csv file and have the first row in the file create the table column names?
 
No. However, you could use a text editor (or program code) to assemble the CREATE TABLE statement from the first row of the file.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top