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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Anoop G" <anoopmadavoor(at)gmail(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: how to perform minus (-) operation in a dynamic query
Date: 2008-07-14 14:02:33
Message-ID: 7564.1216044153@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

"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

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message samantha mahindrakar 2008-07-14 15:20:25 Re: Rollback in Postgres
Previous Message Markus Wanner 2008-07-14 11:43:28 Re: how to perform minus (-) operation in a dynamic query