| From: | François Figarola <francois(dot)figarola(at)i-consult(dot)fr> |
|---|---|
| To: | BPascal <pascal62fr(at)free(dot)fr> |
| Cc: | pgsql-fr-generale(at)postgresql(dot)org |
| Subject: | Re: timestamp without time zone |
| Date: | 2008-08-27 15:36:38 |
| Message-ID: | 48B57486.6050507@i-consult.fr |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-fr-generale |
BPascal a écrit :
> Bonjour,
>
> J'ai prévu d'enregistrer des dates dans mes tables au format timestamp
> without time zone
> Il me semble que c'est un bon choix, j'ai besoin de année mois jour
> heure minute seconde.
>
>
>
> Après avoir lu http://docs.postgresqlfr.org/8.3/functions-datetime.html
>
> J'ai essayé:
> $query_insert = "INSERT INTO \"TTest\" ( \"Champ1\", \"Champ2\",
> \"CTimestamp_wtz\") VALUES ( '$valeur1', '$valeur2', LOCALTIMESTAMP";
> Malheureusement j'ai un problème de syntaxe à la fin de la ligne
> LOCALTIMESTAMP^
>
> Ce que je veux faire c'est enregistrer l'heure à laquelle une requête
> est faite.
>
>
> Cordialement
>
Peut-être un parenthèse fermante ferait elle l'affaire ...
$query_insert = "INSERT INTO \"TTest\" ( \"Champ1\", \"Champ2\",
\"CTimestamp_wtz\") VALUES ( '$valeur1', '$valeur2', LOCALTIMESTAMP)";
Cordialement.
François.
--
INTERNET CONSULT
Mas Guerido
6 rue Aristide Bergès
66330 CABESTANY
Tel 04.68.66.09.29
fax 04.68.66.99.50
* francois(dot)figarola(at)i-consult(dot)fr
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Guillaume Lelarge | 2008-08-27 15:45:21 | Re: timestamp without time zone |
| Previous Message | BPascal | 2008-08-27 15:24:48 | timestamp without time zone |