From: Brook Milligan <brook@trillium.NMSU.Edu>
To: ericm@palaver.net
Cc: pgsql-sql@postgreSQL.org
Subject: Re: [SQL] parts of date_part()
Date: Tue, 25 Aug 1998 11:20:18 -0600 (MDT)
Message-ID: <199808251720.LAA05553@trillium.nmsu.edu> (raw)
In-Reply-To: <Pine.LNX.3.96.980824182856.299A-100000@farout.palaver.net>
References: <Pine.LNX.3.96.980824182856.299A-100000@farout.palaver.net>
played with some other things, like 'month' and 'year'. However, I was
wondering if there was a way to obtain the name of the day (Tuesday,
Wednesday, etc.) using this function, among other things. I tried
Try
select date_part ('dow', field_name) from table ;
This gives numbers 0-6 => Sunday-Saturday (I think). I suppose that
could be joined with another table with names.
Is there a more direct way to get the names?
Cheers,
Brook
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: brook@trillium.NMSU.Edu, ericm@palaver.net
Subject: Re: [SQL] parts of date_part()
In-Reply-To: <199808251720.LAA05553@trillium.nmsu.edu>
References: <Pine.LNX.3.96.980824182856.299A-100000@farout.palaver.net> <199808251720.LAA05553@trillium.nmsu.edu>
* 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