MySQL Forums
Forum List  »  Newbie

Re: convert string to number
Posted by: laptop alias
Date: April 28, 2010 12:03PM

SELECT REPLACE(REPLACE('12.567,98','.',''),',','.')x;
+----------+
| x        |
+----------+
| 12567.98 |
+----------+

Options: ReplyQuote


Subject
Written By
Posted
April 28, 2010 11:37AM
Re: convert string to number
April 28, 2010 12:03PM


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.