Re: Find all the dates in the calendar week? - Mailing list pgsql-general

From Mike Mascari
Subject Re: Find all the dates in the calendar week?
Date
Msg-id 39644E95.6F3B4E8C@mascari.com
Whole thread Raw
In response to Re: Find all the dates in the calendar week?  (Stephane Bortzmeyer <bortzmeyer@pasteur.fr>)
Responses Re: Find all the dates in the calendar week?  (Stephane Bortzmeyer <bortzmeyer@pasteur.fr>)
List pgsql-general
Stephane Bortzmeyer wrote:
>
> On Thursday 6 July 2000, at 18 h 5, the keyboard of "Andrew Snow"
> <als@fl.net.au> wrote:
>
> > SELECT event FROM events WHERE to_char(CURRENT_TIMESTAMP, 'ww') =
> > to_char(eventdate, 'ww');
>
> Sorry, I should have mentioned that I played with to_char and it seems the documentation is wrong:
>
> conferences=> select * from conferences where to_char(CURRENT_TIMESTAMP, 'ww') =
> conferences-> to_char(date_begin,  'ww');
> ERROR:  No such function 'to_char' with the specified attributes
>
> Or it is a new feature of PostgreSQL 7?

to_xxx are new to 7.0, thanks to Karel Zak.

Mike Mascari

pgsql-general by date:

Previous
From: Pablo Niklas
Date:
Subject: Convert dbf to pgsql tables
Next
From: Stephane Bortzmeyer
Date:
Subject: Re: Find all the dates in the calendar week?