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?
Asked
Active
Viewed 77 times
0

Hari
- 192
- 2
- 12

Alex Ulianov
- 33
- 3
-
did you try solving this yourself first? – Funk Forty Niner Dec 06 '16 at 19:23
1 Answers
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
-
-
@AlexUlianov, go through the linked documentation page. That will help you. – Rahul Dec 06 '16 at 19:26