baperl has asked for the wisdom of the Perl Monks concerning the following question:
however, I am using the following code to load the data and couldn't get the UnixDate() to work...my $trade_dt=UnixDate($tdate,"%Y-%m-%d");
how do I fix the date formatting so the data is inserted in yyyy-mm-dd formatLOAD DATA LOCAL INFILE '$fname' INTO TABLE $tname FIELDS TERMINATED BY + ',' (trade_dt,stock_id, volume);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: date formatting again
by mbethke (Hermit) on Jan 23, 2012 at 05:44 UTC | |
|
Re: date formatting again
by roboticus (Chancellor) on Jan 23, 2012 at 11:21 UTC | |
by baperl (Sexton) on Jan 23, 2012 at 16:36 UTC |