0

I have for example csv with a lot of columns and have my DB. I need to import all data from 1 column named oldfile to my database in column symbol. How to make it with sql query?

Hari
  • 192
  • 2
  • 12

1 Answers1

0

Use LOAD DATA INFILE to import from CSV to MySQL databse table. Example:

LOAD DATA INFILE 'data.csv' INTO TABLE my_table;
Rahul
  • 76,197
  • 13
  • 71
  • 125