From: Tom Lane <tgl@sss.pgh.pa.us>
To: Emils Klotins <emils@mail.usis.bkc.lv>
Cc: pgsql-sql@postgreSQL.org
Subject: Re: [SQL] date_part - multiple values in format?
Date: Thu, 02 Mar 2000 10:46:03 -0500
Message-ID: <8873.952011963@sss.pgh.pa.us> (raw)
In-Reply-To: <200003021508.RAA08695@omega.bkc.lv>
References: <200003021508.RAA08695@omega.bkc.lv>
"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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, emils@mail.usis.bkc.lv
Subject: Re: [SQL] date_part - multiple values in format?
In-Reply-To: <8873.952011963@sss.pgh.pa.us>
References: <200003021508.RAA08695@omega.bkc.lv> <8873.952011963@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox