Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Breaking some numbers of of an alphanumeric string.

Status
Not open for further replies.

weightinwildcat

Programmer
May 11, 2010
84
US
I have several years of database experience but am new to MySQL.

I have a column of data with text entries like the following:

W29N6432
N101W10362
S231

I need to break out all the numerical characters to the right of the rightmost letter. For instance, in the first string I would need to break out the characters 6432 to the right of the letter N.

I do not know of a formula for doing this in Excel, and I was wondering what suggestions people might have for doing this in MySQL.

Thank you for your help.

I am not sure
 
it's a bit early for me to get a real andle on this ! but look at you miht be able to have 26 case statements (i.e. A..Z) and do a substr with the results therein.
There might be an easy with with the regex function in MYSQL. The manual has a lot of detail and I think you just need to being programmers cunning to the party !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top