Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 9C3786332A5 for ; Thu, 9 Apr 2009 03:48:37 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 56686-07 for ; Thu, 9 Apr 2009 03:48:33 -0300 (ADT) Received: from mx1.hub.org (mx1.hub.org [200.46.208.106]) by mail.postgresql.org (Postfix) with ESMTP id C26196331E9 for ; Thu, 9 Apr 2009 03:48:33 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail2.fintrading.com (mail.fintrading.com [195.2.100.100]) by mx1.hub.org (Postfix) with ESMTP id E5F26125A7D2 for ; Thu, 9 Apr 2009 03:48:28 -0300 (ADT) Received: from chipmunk (unknown [81.198.70.254]) by mail2.fintrading.com (Postfix) with ESMTPA id F0FD8381139D for ; Thu, 9 Apr 2009 09:47:33 +0300 (EEST) From: "Peter" To: References: <358805.94828.qm@web33404.mail.mud.yahoo.com> In-Reply-To: <358805.94828.qm@web33404.mail.mud.yahoo.com> Subject: Re: String Formula to calculate the value Date: Thu, 9 Apr 2009 09:47:27 +0300 Message-ID: <021601c9b8df$0fb04d80$2f10e880$@com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0217_01C9B8F8.34FD8580" X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Acm4ZBxul80mCEg9TZ2XI2V2U5bY5AAephcw Content-Language: en-us X-MailScanner-ID: F0FD8381139D.0B69B X-greatnowhere.com-MailScanner: Found to be clean X-greatnowhere.com-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-6.799, required 6, autolearn=not spam, ALL_TRUSTED -1.80, BAYES_00 -5.00, HTML_MESSAGE 0.00) X-greatnowhere.com-MailScanner-From: peter@greatnowhere.com MailScanner-NULL-Check: 1239864455.37145@KXbWELB2hH4/r/67z1O9GQ X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 200904/40 X-Sequence-Number: 19487 This is a multipart message in MIME format. ------=_NextPart_000_0217_01C9B8F8.34FD8580 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable You could use plPerl =E2=80=93 it is very well suited for string = manipulation. Also there is eval() function that can be used for = formulas like yours. =20 From: pgsql-jdbc-owner@postgresql.org = [mailto:pgsql-jdbc-owner@postgresql.org] On Behalf Of ram subbu Sent: Wednesday, April 08, 2009 2:56 PM To: Kris Jurka; pgsql-jdbc@postgresql.org; pgsql-jdbc@postgresql.org Subject: [JDBC] String Formula to calculate the value =20 Dear All, I am having a formula String say=3D=3D=3D=3D> (a+b*c)/2 I need to pass the dynamic value to these a,b,c=20 =20 and i need to calculate the value. please help me out to write a procedure to do all these stufs. =20 ------=_NextPart_000_0217_01C9B8F8.34FD8580 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable

You could use plPerl =E2=80=93 it is very=C2=A0 well = suited for string manipulation. Also there is eval() function that can be used for = formulas like yours.

 

From:= pgsql-jdbc-owner@postgresql.org [mailto:pgsql-jdbc-owner@postgresql.org] = On Behalf Of ram subbu
Sent: Wednesday, April 08, 2009 2:56 PM
To: Kris Jurka; pgsql-jdbc@postgresql.org; = pgsql-jdbc@postgresql.org
Subject: [JDBC] String Formula to calculate the = value

 

Dear All,

  &= nbsp; I am having a formula String

say=3D=3D=3D=3D= > (a+b*c)/2

I need to pass the dynamic value to these a,b,c

 

and i need to calculate the value.

please help me out to write a procedure to do all these = stufs.

 

------=_NextPart_000_0217_01C9B8F8.34FD8580--