Re: problem insert time into column timestamp

Поиск
Список
Период
Сортировка
От frbn
Тема Re: problem insert time into column timestamp
Дата
Msg-id 3D48EA01.1030707@efbs-seafrigo.fr
обсуждение исходный текст
Ответ на problem insert time into column timestamp  ("frank_lupo" <frank_lupo@email.it>)
Список pgsql-general
frank_lupo a écrit:
> 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 ?


gedis30=# insert into pippo (aa) values(cast ('10:12:12' as time));


В списке pgsql-general по дате отправления:

Предыдущее
От: g.hintermayer@inode.at (Gerhard Hintermayer)
Дата:
Сообщение: Re: database shutdown with persistent client connections
Следующее
От: Karel Zak
Дата:
Сообщение: Re: to_char(0,'FM990D99') = "0." instead of "0"