Re: Query with error - DOW FROM timestamp - Mailing list pgsql-general

From Victor Sterpu
Subject Re: Query with error - DOW FROM timestamp
Date
Msg-id em0d855611-da34-4134-a9e8-cee72d2f50a6@victor-pc
Whole thread Raw
In response to Re: Query with error - DOW FROM timestamp  (Albe Laurenz <laurenz.albe@wien.gv.at>)
List pgsql-general
  Yes, thank you.

------ Original Message ------
From: "Albe Laurenz" <laurenz.albe@wien.gv.at>
To: "Victor Sterpu" <victor@caido.ro>; "PostgreSQL General"
<pgsql-general@postgresql.org>
Sent: 5/23/2014 12:51:30 PM
Subject: RE: [GENERAL] Query with error - DOW FROM timestamp

>Victor Sterpu wrote:
>>  When I run the query from down I receive an error.
>>  How can I write this query to receive the day ot the week.
>>  SELECT EXTRACT(DOW FROM timestamp TO_TIMESTAMP('14-10-2011',
>>'DD-MM-YYYY'));
>
>Maybe you mean
>
>SELECT EXTRACT(DOW FROM TO_TIMESTAMP('14-10-2011', 'DD-MM-YYYY'));
>
>Yours,
>Laurenz Albe



pgsql-general by date:

Previous
From: RUSHI KAW
Date:
Subject: Trouble running nested select - Join query
Next
From: Khangelani Gama
Date:
Subject: postgreSQL : duplicate DB names