Re: problem insert time into column timestamp

From: Darren Ferguson <darren(at)crystalballinc(dot)com>
To: frank_lupo <frank_lupo(at)email(dot)it>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: problem insert time into column timestamp
Date: 2002-07-31 17:13:20
Message-ID: Pine.LNX.4.44.0207311312290.31508-100000@thread.crystalballinc.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

do not use the time stamp field use time if you are doing a time instead
of a timestamp

and for the date use a pure date field

HTH

On Wed, 31 Jul 2002, frank_lupo wrote:

> When working with Ingres, it is possible to create a field "date"
> and insert into this a time value e.g. '10:12:12'
> the current date is assigned automatically by Ingres
> e.g. '31/07/2002 10:12:12'
>
> When working with Postgres, I receive an error when trying to insert a
> time value into a timestamp field
> gedis30=# create table pippo (aa timestamp)\g
>
> gedis30=# insert into pippo (aa) values('10:12:12')\g
> ERROR: Bad timestamp external representation '10:12:12'
>
> How can I solve this problem ?
>
> Bye !!
> Frank Lupo (Wolf) !!
>
>
>
> --
> Prendi GRATIS l'email universale che... risparmia: http://www.email.it/f
>
> Sponsor:
> Il nostro catalogo completo a casa tua, gratis! Vieni da Peraga, tanti prodotti introvabili per te.
> Clicca qui: http://adv2.email.it/cgi-bin/foclick.cgi?mid=450&d=31-7
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>

--
Darren Ferguson

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Oberpriller, Wade D. 2002-07-31 18:12:47 Backends that run on different servers
Previous Message Fabiàn R.Breschi 2002-07-31 17:03:24 MySQL or Postgres ?