How to check if a variable is numeric in MySQL
Posted by: Javin Paul
Date: December 06, 2014 09:38PM

Hi,

I have a column which is String but suppose to contain numeric Strings. Since it is String their is no constraints to not allow anything else then number. Now I need to get data from this column and has to convert it to number. To avoid any error, I am thinking to first check if String contains only number and then convert. Can anyone please advise how we can do it in MySQL.

Thanks

Options: ReplyQuote


Subject
Written By
Posted
How to check if a variable is numeric in MySQL
December 06, 2014 09:38PM


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.