Re: Syntax problem for a newbie

From: Tony Caduto <tony_caduto(at)amsoftwaredesign(dot)com>
To: Fred <frederic(dot)fleche(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Syntax problem for a newbie
Date: 2006-05-05 16:53:48
Message-ID: 445B831C.8060801@amsoftwaredesign.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Scott Marlowe 2006-05-05 17:09:55 Re: Unify distant Postgres databases
Previous Message Tom Lane 2006-05-05 16:49:01 Re: Syntax problem for a newbie