Re: Timestamp

Поиск
Список
Период
Сортировка
От Theodore Petrosky
Тема Re: Timestamp
Дата
Msg-id 20031022114032.44723.qmail@web41009.mail.yahoo.com
обсуждение исходный текст
Ответ на Timestamp  (Abdul Wahab Dahalan <wahab@mimos.my>)
Список pgsql-sql
Check this out....

http://www.postgresql.org/docs/7.3/static/functions-formatting.html

to_char(departure, 'MM-DD-YYYY HH24:MI:SS') as
newformatdeparture


Ted
--- Abdul Wahab Dahalan <wahab@mimos.my> wrote:
> Hi !
> In my database I've a field "departure" with
> timestamp without time zone 
> data type.
> eg :
> departure
> 2003-11-01 14:29:46
> 
> Now I want to select it as in this format 01-11-2003
> 14:29:46 How should 
> I do it?.
> 
> Thank you for any help.
> 
> 
> ---------------------------(end of
> broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster

__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com


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

Предыдущее
От: sad
Дата:
Сообщение: see a current query
Следующее
От: Rod Taylor
Дата:
Сообщение: Re: see a current query