Selecting financial values from db stored as text

Posted by Midhat on Stack Overflow See other posts from Stack Overflow or by Midhat
Published on 2010-04-05T09:51:56Z Indexed on 2010/04/05 10:03 UTC
Read the original article Hit count: 218

Filed under:
|

I have some financial values stored as text in a mysql db. the significance of financial is that negative numbers are stored enclosed in paranthesis. is there a way to automatically get the numeric value associated with that text. (like '5' shoudl be retuned as 5 and '(5)' should be returned as -5)

© Stack Overflow or respective owner

Related posts about mysql

Related posts about sql