Re: Help with casting timestamp column

Поиск
Список
Период
Сортировка
От Chris Gamache
Тема Re: Help with casting timestamp column
Дата
Msg-id 20040610180029.13181.qmail@web13806.mail.yahoo.com
обсуждение исходный текст
Ответ на Help with casting timestamp column  ("Chris Hoover" <revoohc@sermonaudio.com>)
Список pgsql-odbc
select to_char(my_timestamp,'MM/DD/YYYY HH') from t;

returns a string representation of the timestamp...

HTH,

CG


--- Chris Hoover <revoohc@sermonaudio.com> wrote:
> I need a bit of help.  I have a table full of database stats that are
> all timestamped using the now() timestamp.  However, I need to pull some
> consolidated reports that are based upon hourly activiy.  Does anyone
> know of a way to get a timestamp column to return as mm/dd/yyyy hh?
>
> Thanks for any help,
>
> chris
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 8: explain analyze is your friend





__________________________________
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/

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

Предыдущее
От: "Chris Hoover"
Дата:
Сообщение: Help with casting timestamp column
Следующее
От: Janet Borschowa
Дата:
Сообщение: Re: Help with casting timestamp column