alexx_sh has asked for the wisdom of the Perl Monks concerning the following question:
Hello
I have a following question.
How to use the DBD :: ODBC referring to MS Access to write a query that as one of the parameters where used timestamp.
I tried to use sql
my $ sth = $ dbh-> prepare ( SELECT val from table where DD_MM_YYYY = '2012-07-22 00:00:00 ');
and get an error DBD :: ODBC does not yet support binding a named parameter more than once.my $ sth = $ dbh-> prepare ( q{SELECT val from table where DD_MM_YYYY =}.q{/ts 2012-07-22 00:00:00 +/});
Help me please write the query correctly.
And it will be cool if query use placeholders.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Debian DBD::ODBC select row by timestamp
by mje (Curate) on Jul 23, 2012 at 15:51 UTC | |
by alexx_sh (Novice) on Jul 23, 2012 at 17:09 UTC | |
by CountZero (Bishop) on Jul 23, 2012 at 17:19 UTC | |
by alexx_sh (Novice) on Jul 24, 2012 at 05:38 UTC | |
by mje (Curate) on Jul 24, 2012 at 08:02 UTC | |
| |
|
Re: Debian DBD::ODBC select row by timestamp
by Anonymous Monk on Jul 23, 2012 at 16:02 UTC |