Wil
Wil

Reputation: 10604

How do I import a CSV to MySQL where there is a space in a column name?

I have been handed a very large CSV file that needs to be imported to a database.

I have done this before and know the general syntax, however, I am failing and getting errors on the column names as they contain a space.

I have tried different sorts of quotes without luck and have been searching the internet for the past hour.

Can anyone help me?

Upvotes: 0

Views: 347

Answers (1)

Travesty3
Travesty3

Reputation: 14479

Backticks: `, to the left of the 1 key.

Upvotes: 2

Related Questions