Skip site navigation (1) Skip section navigation (2)

Re: как преобр

From: Андрей Зевакин <zevakin(at)tsogu(dot)ru>
To: Serik <uge(at)pochtamt(dot)ru>
Cc: pgsql-ru-general(at)postgresql(dot)org
Subject: Re: как преобр
Date: 2006-04-19 09:48:49
Message-ID: 44460781.7060403@tsogu.ru (view raw or flat)
Thread:
Lists: pgsql-ru-general
Serik пишет:
> есть функции для преобразования "2006-04-19 10:05:44.98593" -> "2006-04-19 10:05" ?
>
> если конечно не делать ... EXTRACT(DAY FROM TIMESTAMP '2001-02-16 20:38:40')+
> EXTRACT(MONTH FROM TIMESTAMP '2001-02-16 20:38:40');
>
> Serik Akhmetov
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
>                http://archives.postgresql.org
select to_char('2006-04-19 10:05:44.98593'::timestamp, 'yyyy-mm-dd 
hh24:mi');
почитай тут 
http://www.postgresql.org/docs/8.1/interactive/functions-formatting.html

In response to

pgsql-ru-general by date

Next:From: Anton MaksimenkovDate: 2006-05-30 13:02:59
Subject: связать таблицы по наибольшему совпадению строки
Previous:From: sanya-spbDate: 2006-04-19 08:30:11
Subject: Re: как преобразовать "2006-04-19 10:05:44.98593" -> "2006-04-19 10:05"

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group