Re: how to perform minus (-) operation in a dynamic query

From: "Anoop G" <anoopmadavoor(at)gmail(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: how to perform minus (-) operation in a dynamic query
Date: 2008-07-15 04:17:25
Message-ID: 1a027d210807142117y78a4d7b5if7f4b5987d0f9cea@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hai all,

Thanks to all , I got the answer, actualy I am write the function in
openoffice.org and paste it to a .sql file that is the reason for the error.

thanks
Anoop

On Mon, Jul 14, 2008 at 7:32 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> "Anoop G" <anoopmadavoor(at)gmail(dot)com> writes:
> > ERROR: syntax error at or near "\226" at character 18
> > QUERY: SELECT mf,sf,(mf \226 mf * comm /100) \226 (sf \226 sf *
> comm/100) as
> > flt_claim
> > CONTEXT: PL/pgSQL function "test_perc" line 7 at for over execute
> statement
> > LINE 1: SELECT mf,sf,(mf \226 mf * comm /100) \226 (sf \226 sf *
> comm/100) as...
>
> I'm not sure what character \226 is, but it's not a minus sign ...
>
> regards, tom lane
>

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Ivan Sergio Borgonovo 2008-07-15 06:10:25 COPY equivalent for updates
Previous Message Jonah H. Harris 2008-07-15 02:54:10 Re: Rollback in Postgres