I'm looking for the way to import csv file into .sql file which are both in same directory. This is because I don't know the exact path where my project will run on.
it will be in something........./db/migration folder. I tried 'ex.csv', '/ex.csv', './ex.csv', '/db/migration/ex.csv' ..etc.
How can I import it? Or is it impossible?
LOAD DATA INFILE '/ex.csv' INTO TABLE Course
FIELDS TERMINATED BY ',' ENCLOSED BY '"'
LINES TERMINATED BY '\n'