Mysql 5.2
Good Afternoon all
have a field which is a string that I need to convert to a number.
in crystal I would convert the field as such val({doses}).
I can use the VAL() statement to strip out the non numberic characters.
can this be done in mysql
the characters I want to strip out are at the end of the number
"mc"
" mc"
"u"
" iu"
"mcg"
The number can be from 1 to 99999
typical data looks like 20mcg or 20 mcg or 20u or 20 u or 20iu or 20 iu.
Why the field is not a number thats another story.
Would most appreciate your help with this
Good Afternoon all
have a field which is a string that I need to convert to a number.
in crystal I would convert the field as such val({doses}).
I can use the VAL() statement to strip out the non numberic characters.
can this be done in mysql
the characters I want to strip out are at the end of the number
"mc"
" mc"
"u"
" iu"
"mcg"
The number can be from 1 to 99999
typical data looks like 20mcg or 20 mcg or 20u or 20 u or 20iu or 20 iu.
Why the field is not a number thats another story.
Would most appreciate your help with this