pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedHelp with postgres functions
2+ messages / 2 participants
[nested] [flat]
* Help with postgres functions
@ 2001-04-19 13:04 Fabio Alberto Sobral <sobral@lncc.br>
2001-04-20 07:28 ` Re: Help with postgres functions Karel Zak <zakkr@zf.jcu.cz>
0 siblings, 1 reply; 2+ messages in thread
From: Fabio Alberto Sobral @ 2001-04-19 13:04 UTC (permalink / raw)
To: pgsql-admin
Dear Sirs,
I have a timestamp atribute in my table and I want to get only the date of
this atribute. How can I do this? Does the extract or date_part functions
resolve my problem?
Regards,
Fabio Sobral.
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Help with postgres functions
2001-04-19 13:04 Help with postgres functions Fabio Alberto Sobral <sobral@lncc.br>
@ 2001-04-20 07:28 ` Karel Zak <zakkr@zf.jcu.cz>
0 siblings, 0 replies; 2+ messages in thread
From: Karel Zak @ 2001-04-20 07:28 UTC (permalink / raw)
To: Fabio Alberto Sobral <sobral@lncc.br>; +Cc: pgsql-admin
On Thu, Apr 19, 2001 at 10:04:42AM -0300, Fabio Alberto Sobral wrote:
> Dear Sirs,
>
> I have a timestamp atribute in my table and I want to get only the date of
> this atribute. How can I do this? Does the extract or date_part functions
> resolve my problem?
Cast timestampt to date:
myAttr::date
or
CAST(myAttr as date)
Karel
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2001-04-20 07:28 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-04-19 13:04 Help with postgres functions Fabio Alberto Sobral <sobral@lncc.br>
2001-04-20 07:28 ` Karel Zak <zakkr@zf.jcu.cz>
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