Re: question sur la fonction now()

From: "Froggy / Froggy Corp(dot)" <froggy(at)froggycorp(dot)com>
To: "pgsql-fr-generale(at)postgresql(dot)org" <pgsql-fr-generale(at)postgresql(dot)org>
Subject: Re: question sur la fonction now()
Date: 2005-02-19 17:23:46
Message-ID: 42177622.AA2D10FD@froggycorp.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-fr-generale

La reponse :

"timeofday()::timestamp"

"Froggy / Froggy Corp." wrote:
>
> Est ce qu'il y a un moyen d'obtenir le temps à un instant T dans une
> fonction a ce moment la ?
>
> Mathieu Arnold wrote:
> >
> > +-le 18/02/2005 20:10 +0100, Froggy / Froggy Corp. écrivait :
> > | Bonsoir,
> > |
> > | J'avais une petite question, dans quel condition est update la fonction
> > | now() car si je prend le timestamp en debut de fonction plpgsql et en
> > | fin de fonction, j'ai la meme valeur.
> > |
> > | Merci d'avance,
> > | +
> >
> > Vouy, une fonction plpgsql est executée au sein d'une seule transaction, et
> > dans une transaction, now() retourne toujours la même valeur, celle du début
> > de la transaction.
> >
> > --
> > Mathieu Arnold
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org

In response to

Browse pgsql-fr-generale by date

  From Date Subject
Next Message Daniel Verite 2005-02-19 17:24:11 Re: question sur la fonction now()
Previous Message Froggy / Froggy Corp. 2005-02-19 17:08:10 Re: question sur la fonction now()