Quote:
>> hi all,
>> i'm using DBD::XBase to access DBF files.
>> In a table i have a 'date' field, and, in a "select" query i want it to
>> return only the year and month...something like this :
>> Select distinct to_char(TheDate, 'YYYYMM') from Planning; ( works with
>> Oracle...)
>> is there anybody to give me the rigth syntax ? or is the DBD::XBase unable
>> to do this ?
> I doubt if you can do this straigntforwardly - you will need to get the
> date out in whatever format it comes as and then manipulate it later.
This is also mentioned in the XBase FAQ :
<http://www.fi.muni.cz/~adelton/perl/man3/XBase::FAQ.html>
/J\
--
"William Hague, the world's favourite hairline" - Rory Bremner