From: Peter <peter@greatnowhere.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: String Formula to calculate the value
Date: Thu, 9 Apr 2009 09:47:27 +0300
Message-ID: <021601c9b8df$0fb04d80$2f10e880$@com> (raw)
In-Reply-To: <358805.94828.qm@web33404.mail.mud.yahoo.com>
References: <358805.94828.qm@web33404.mail.mud.yahoo.com>
You could use plPerl – it is very 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,
I am having a formula String
say====> (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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: peter@greatnowhere.com
Subject: Re: String Formula to calculate the value
In-Reply-To: <021601c9b8df$0fb04d80$2f10e880$@com>
References: <358805.94828.qm@web33404.mail.mud.yahoo.com> <021601c9b8df$0fb04d80$2f10e880$@com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox