Re: Syntax problem for a newbie - Mailing list pgsql-general

From Tony Caduto
Subject Re: Syntax problem for a newbie
Date
Msg-id 445B831C.8060801@amsoftwaredesign.com
Whole thread Raw
In response to Syntax problem for a newbie  ("Fred" <frederic.fleche@gmail.com>)
List pgsql-general
Fred wrote:
> Dear all,
>
> I have a syntax problem but I don't find the clue.
> Actually I adapt an mySQL query to a postgreSQL but I got a message
> error that I can't interpret.
>
> SELECT g.id, t1.name, substring(g.path, 1, (6*(-1+l.id)) + 5) as
>
The thing that stands out to me is the syntax for the substring
function, see:
http://www.postgresql.org/docs/8.1/static/functions-string.html

Hope this helps,

--

Tony Caduto
AM Software Design
http://www.amsoftwaredesign.com
Home of PG Lightning Admin for Postgresql
Your best bet for Postgresql Administration


pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Syntax problem for a newbie
Next
From: Scott Marlowe
Date:
Subject: Re: Unify distant Postgres databases