From: Leo Xavier <info@megabenfica.com>
To: pgsql-sql@postgresql.org
Subject: order by day or month, etc
Date: Wed, 3 Jan 2001 00:22:14 -0000
Message-ID: <001201c0751b$39405ca0$8902a8c0@centro.com> (raw)
Hello
first time I post something... good morning everyone!
short presentation: Leo Xavier, Lisbon - Portugal, 17 years, my home-made
site: www.megabenfica.com
Sql7, win 2000...
The question:
How for example do I select all entrys from a certain month (of a certain
year, of course) ?
Or from a certain day? And how from a certain period, between day X and Y,
i.e?
The solution i found is to create three columns in the table: one with the
day, a second with the month, a thir with the year... but this really is a
little bit unprofessional ...
doing this:
SELECT to_char(field, 'DD/MM/YYYY') AS new_date
as Francis Solomon said, didnt work... "unrecognized function" ...
can anyone help me??
Leo Xavier
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: info@megabenfica.com
Subject: Re: order by day or month, etc
In-Reply-To: <001201c0751b$39405ca0$8902a8c0@centro.com>
References: <001201c0751b$39405ca0$8902a8c0@centro.com>
* 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