Below is what I have in table myTable
+++++++++++++++ + id + myWord + +++++++++++++++ + 1 + AB123 + + 2 + A413D + + 3 + X5231 + + 4 + ABE921 + +++++++++++++++ When I execute
SELECT id, Locate('1',myWord) as myPos FROM myTable; I get position of 1.
+++++++++++++++ + id + myPos + +++++++++++++++ + 1 + 3 + + 2 + 3 + + 3 + 5 + + 4 + 6 + +++++++++++++++ What I want to achieve is finding first position of integer so that I will have below output.
+++++++++++++++++++++++ + id + myWord + myPos + +++++++++++++++++++++++ + 1 + AB123 + 3 + + 2 + A413D + 2 + + 3 + X5231 + 2 + + 4 + ABE921 + 4 + +++++++++++++++++++++++ Any Idea how I can achieve this?