in reply to DBI INTERVAL Error
Question is; is INTERVAL not part of DBI SQL? Any other suggestions?
It's not to do with the DBI, it's the driver you are using. See the error message. DBD::CSV doesn't support date datatypes.
And afaict INTERVAL is only supported by Oracle.
But as the error message also indicates, DBD::CSV uses SQL::Statement as its SQL engine, and you can implement your own SQL functions as explained in Statement/Syntax.pod#Extending_SQL_syntax_using_SQL.
On the other hand, depending on how large your data set is, it might be simpler to implement the filter in Perl and apply it as you fetch rows from the statement handle or in building the query as shown by poj.
Hope this helps!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: DBI INTERVAL Error
by Marshall (Canon) on Mar 20, 2016 at 18:03 UTC |