Hello, Andrei! You wrote on Wed, 06 Dec 2006 12:48:32 -0000:
A> тогда уже: extract(Year from date_field) * 365 + extract(Month
A> from date_field) * 30 + extract(Day from date_field)
Не пойму, в чем проблема. Дата в IB/FB - число дней от 01.01.0100.
select current_date - cast('100-01-01' as date) from rdb$database
даст тебе число дней (целое) от "начала времен по Interbase".
Удач
--
Alexander A. Venikov, Tobolsk, Russia
Real e-mail address is venix<angry_dog>tn<dot>tob<dot>ru

