Re: [NOVICE] (Fwd) Hi and some advice on Dates
От | W.H. Dekker |
---|---|
Тема | Re: [NOVICE] (Fwd) Hi and some advice on Dates |
Дата | |
Msg-id | 199811081036.LAA00206@servaly.hobby.nl обсуждение исходный текст |
Ответ на | (Fwd) Hi and some advice on Dates ("Andrew Mather (Powered By Linux)" <mathera@woody.agvic.gov.au>) |
Ответы |
Re: [NOVICE] (Fwd) Hi and some advice on Dates
|
Список | pgsql-sql |
Andrew Mather wrote: > Could anyone help with the following: (I have not fixed data type yet, > I will be guided by any info I can get) > > How to query a table and look for any records where > the value in a date field is greater than (say) 10 days ago > > Calculate the difference between two times on the same day. (I have > experimented with age() and it sort of does wht I want..is there any > other way ?) Use Perl as a database interface and have a look at de Perl module Date::Manip. It has all you need, and more. -- Best regards, Wybo ===================Servalys Analytical Chemistry Services================= Wybo H. Dekker | Deilsedijk 60 | tel +31-345-652164 wybo@servaly.hobby.nl | 4158 CH Deil, The Netherlands | fax +31-345-652383
В списке pgsql-sql по дате отправления: