Search Postgresql Archives

Confused by to_char

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

(using to_date does not recognise the date format)

anyone any ideas what I am doing wrong

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
      joining column's datatypes do not match

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux