I have a column were I need to sort by that contains Alphabetical characters and numbers
Now the following values
ABC223
ABC12
Now I need to sort this only by numbers ignoring the Alphabetical characters in the string,
Something to remember is sometimes the value can start with GD, othertimes with only A sometimes 123AB et
Is this at all possible?
Take a look at: https://launchpad.net/mysql-udf-regexp and How to do a regular expression replace in MySQL?
If you use
udfyou can execute an ORDER BY with a regex replace.