Hi,

I have imported .csv file and column is appearing as Col 1, Col 2...
and the data I want as a column name is appearing as a first row.
How do I convert my first row into column name in phpmyadmin.
Thanks in advance

Recommended Answers

All 6 Replies

There should be a checkmark to identify the first row as the column names.

I did that but it gives me an error

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version 

Can you show the first line with the column names? It may be a problem with spaces, or quotes.

Yes i do have columns with no data i.e spaces.
So is it possible anyway??

Thanks pritaeas

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.