Re: [SQL] date_part - multiple values in format?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [SQL] date_part - multiple values in format?
Дата
Msg-id 8873.952011963@sss.pgh.pa.us
обсуждение исходный текст
Ответ на date_part - multiple values in format?  ("Emils Klotins" <emils@mail.usis.bkc.lv>)
Ответы Re: [SQL] date_part - multiple values in format?
Список pgsql-sql
"Emils Klotins" <emils@mail.usis.bkc.lv> writes:

> I am looking basically for something like:
> select date_part('%d %m %y', now()::datetime);

I think to_char() addresses this in 7.0, although it doesn't use
the strftime formatting conventions (blame Oracle for that ;-)).
See http://www.postgresql.org/docs/postgres/functions2569.htm

> Will there be a possibility of string concatenation in 7.x so that 
> I don't have to put all the concats in brackets? (ie. currently I 
> have to: ((((X || Y) || Z ) || A) || B) 
> which is of course also rather clumsy and leads to lots of 
> typos in case of more complex expressions.

What?

regression=# select 'a'::text || 'b'::text || 'c'::text;?column?
----------abc
(1 row)

6.5.3 behaves the same ...
        regards, tom lane


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

Предыдущее
От: "Emils Klotins"
Дата:
Сообщение: date_part - multiple values in format?
Следующее
От: "Emils Klotins"
Дата:
Сообщение: Re: [SQL] date_part - multiple values in format?