MySQL Forums
Forum List  »  Newbie

Re: How to create a function to evaluate numeric expression
Posted by: Peter Brawley
Date: December 18, 2014 11:09AM

> the formula could be very different.

If there are a limited number of possible formulas, you could code them literally into a func and select one on each run eg with a case statement. Otherwise you need to write a parser. SQL is not a complete computer language. Your function is best written in an app language.

Options: ReplyQuote


Subject
Written By
Posted
Re: How to create a function to evaluate numeric expression
December 18, 2014 11:09AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.