All pastes #796148 Raw Edit

Untitled

public text v1 · immutable
#796148 ·published 2007-11-24 20:28 UTC
rendered paste body
LOAD DATA INFILE 'd:/t2c/teste.csv' INTO TABLE incoming FIELDS TERMINATED
 BY ','
    -> (@msisdn,@alias,@data,@hora,@lenght)
    -> set idOperador = 4,
    -> lenght = 1,
    -> msisdn = @msisdn,
    -> deliveryDate = str_to_date(@data + " " + @hora,%Y %m %d %H %i %S),
    -> receivedDate = str_to_date(@data + " " + @hora,%Y %m %d %H %i %S),
    -> laNumber = 300,
    -> alias = @alias;

I have several other columns on my table but all accept null values, so i didn't set them.

I have this error.

ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use near '%Y %m
 %d %H %i %S),
receivedDate = str_to_date(@data + " " + @hora,%Y %m %d %H %' at line 6


Can you help me ?