Match two mysql cols on alpha chars (ignoring numbers in same field)

Posted by Steve on Stack Overflow See other posts from Stack Overflow or by Steve
Published on 2010-05-18T08:58:49Z Indexed on 2010/05/18 10:00 UTC
Read the original article Hit count: 183

Filed under:
|

I was wondering if you know of a way I could filter a mysql query to only show the ‘alpha’ characters from a specific field

So something like

SELECT col1, col2, **alpha_chars_only(col3)** FROM table 

I am not looking to update only select.

I have been looking at some regex but without much luck most of what turned up was searching for fields that only contain ‘alpha’ chars.

In a much watered down context... I have col1 which contains abc and col two contains abc123 and I want to match them on alpha chars only. There can be any number of letters or numbers.

Any help very much wel come

© Stack Overflow or respective owner

Related posts about mysql-query

Related posts about mysql