i am using navicat for this:
I would like to skip 1st column from the csv I am loading. Is there any option for that while using LOAD DATA LOCAL INFILE.
I'm loading data into my database from a CSV file using LOAD DATA LOCAL as follows:
LOAD DATA LOCAL INFILE 'filelocation.csv'
INTO TABLE 'table'
FIELDS TERMINATED BY ','
IGNORE 1 LINES
(@ignore, col1, col2, col3...)
The issue I have is that in my database, the first column is called id, whereas the first column in my csv files is called date. the id field is auto incremented but the id column just fills with my data and date column rows are all 0000-00-00 00:00
How do I go about telling LOAD DATA to load the data from each row into the database starting at the date field?