Re: Confused by to_char

From: Ragnar Hafstað <gnari(at)simnet(dot)is>
To: mike <mike(at)redtux1(dot)uklinux(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Confused by to_char
Date: 2005-02-08 13:00:56
Message-ID: 1107867656.28433.9.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, 2005-02-08 at 12:28 +0000, mike wrote:
> I am am trying to get a day string from a date using to_char ie:
>
> SELECT date1,ti1 ,to1,ti2,to2,adj,ei,eo,to_char('2005-02-07','Day') FROM
> vw_times_list1
>
> however I get
>
> function to_char("unknown", "unknown") is not unique

test=# select to_char('2005-02-07'::date,'Day');
to_char
-----------
Monday
(1 row)

gnari

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Chris Green 2005-02-08 13:08:53 Re: Confused by to_char
Previous Message Jim Wilson 2005-02-08 12:31:13 Re: Safely Killing Backends (Was: Applications that leak connections)