Huan Ruan wrote:
>
> select
>    extract(year from current_date) || '-' ||
>    lpad(extract(month from current_date), 2, '0') || '-' ||
>    extract(day from current_date)
> from rdb$database

Is this an "atomic" operation? If not, it would not work correctly
if, for example, the first two "current_date" would be executed at
23:59:59.999 and the third "current_date" at 00:00:00.001.

Of course, this is not a problem if you extract the data from a
normal database date type field instead of "current_time".

-Matt


------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Visit http://www.firebirdsql.org and click the Resources item
on the main (top) menu.  Try Knowledgebase and FAQ links !

Also search the knowledgebases at http://www.ibphoenix.com 

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/firebird-support/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/firebird-support/join
    (Yahoo! ID required)

<*> To change settings via email:
    firebird-support-dig...@yahoogroups.com 
    firebird-support-fullfeatu...@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
    firebird-support-unsubscr...@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Reply via email to