finhagen has asked for the wisdom of the Perl Monks concerning the following question:
However, this date formatting syntax is failing:$dbh->do("insert into frame (indate,siteid,serial,contract,installdate) values (CURDATE(),\'$frame_siteid\',\'$frame_serial\',\'$frame_contract\',STR +_TO_DATE($frame_installdate,\'%m/%d/Y\')");
I imagine this is a common problem for which there is a common answer, but I am having trouble finding it on the mysql or perl sites/reference material I have searched.DBD::mysql::db do failed: You have an error in your SQL syntax; check +the manual that corresponds to your MySQL server version for the righ +t syntax to use near '' at line 3 at ./excel.syr.frame.extract.pl lin +e 91.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: DBI:mysql date conversion question
by lamp (Chaplain) on Sep 22, 2008 at 01:56 UTC | |
|
Re: DBI:mysql date conversion question
by Anonymous Monk on Sep 22, 2008 at 01:14 UTC | |
by Anonymous Monk on Sep 22, 2008 at 01:17 UTC | |
by ikegami (Patriarch) on Sep 22, 2008 at 03:16 UTC | |
by Anonymous Monk on Sep 22, 2008 at 07:10 UTC |