Substring Problem

From: Stefan Schwarzer <stefan(dot)schwarzer(at)grid(dot)unep(dot)ch>
To: pgsql-general(at)postgresql(dot)org
Subject: Substring Problem
Date: 2008-05-13 13:26:57
Message-ID: 51FB76FF-EEE4-4D76-9CF5-5B6053BE2DE7@grid.unep.ch
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi there,
it seems to work with 8.1, but not anymore with 8.3. What is wrong
with this substring request? Or is it some installation issue? Thanks
for any suggestion!
SELECT substring(date from 1 for 7) AS stryearmonth, COUNT(id) AS
countofnumber FROM (SELECT * from downloads ) AS foo GROUP BY
stryearmonth ORDER BY stryearmonth ASC
It says:
ERROR: function pg_catalog.substring(date, integer, integer) does not
exist
LINE 1: SELECT substring(date from 1 for 7) as stryearmonth, COUNT(i...

Responses

Browse pgsql-general by date

  From Date Subject
Next Message hubert depesz lubaczewski 2008-05-13 13:30:35 Re: Substring Problem
Previous Message John Gateley 2008-05-13 13:22:15 DB Connections in TIME_WAIT state