I have a column of type varchar containing chars and numbers. Ex: "ABC123", "XY2"
I want to find the substring before a number. Output:"ABC", "XY"
I went through this post Finding number position in string. But it looked tedious. Is there any elegant way to do this?
I tried to use Locate() as in this post MySQL: Use REGEX to extract string (select REGEX), but it does not take regexp.