Working with dates and queries - Mailing list pgsql-general

From Krog, Kenneth
Subject Working with dates and queries
Date
Msg-id 2B592A1461C5D411919B0002A51350A204B369BC@exch9.private.massmutual.com
Whole thread Raw
Responses Re: Working with dates and queries
List pgsql-general
> I am attempting to do a query for a specific month based of a response for
> a web site using php as the engine.
> The syntax of the sql is simple
>
> "SELECT * FROM table WHERE MONTH(fieldname)=08;"
>
> note:
> the fieldname is set to be a date field.
>
> Is this correct postgre syntax to find a date by month?
>
> If so: the fieldname I used was "date" since it is a researved word will
> this cause problems?
> If not what is the correct syntax?
>
> Thanks in advance


pgsql-general by date:

Previous
From: postgres@vsservices.com
Date:
Subject: Re: Is Perl compiled into Version?
Next
From: Ryan Mahoney
Date:
Subject: Re: business perspective