Subject | Re: [firebird-support] Date extract from TIMESTAMP |
---|---|
Author | Helen Borrie |
Post date | 2004-11-23T13:33:09Z |
At 02:46 PM 23/11/2004 +0200, you wrote:
Tip, if you want to use this field for searching or ordering, you'd do
better to add the DATE column outright, ***index it*** and populate it with
before insert and before update triggers.
./hb
>How can I only get DATE portion of a TIMESTAMP;MyDate COMPUTED BY CAST(MyTimestamp AS DATE)
>
>I have a field that is of type TIMESTAMP I would like to have a computed
>field that stores ony the "date" portion and not the TIME portion.
Tip, if you want to use this field for searching or ordering, you'd do
better to add the DATE column outright, ***index it*** and populate it with
before insert and before update triggers.
./hb