I am using AWS's data pipeline to import a CSV file on S3 into my MySQL RDS instance and am having trouble with the STR_TO_DATE it seems. I am getting a:
"Parse error: expected field to be terminated by endOfRecord or endOfField but was endOfFile"
using this statement:
insert into introtest (pk,id,deld) values (?,?, str_to_date(?, %m/%d/%Y));
I have tried these as well:
insert into introtest (pk,id,deld) values (?,?, str_to_date('?', %m/%d/%Y));
insert into introtest (pk,id,deld) values (?,?, str_to_date(?, '%m/%d/%Y'));
insert into introtest (pk,id,deld) values (?,?, str_to_date('?', '%m/%d/%Y'));
all with the same error
the CSV data =
0,740453,12/01/2010
thanks in advance!