Below is what I have in table myTable
myTable
+++++++++++++++ + id + myWord + +++++++++++++++ + 1 + AB123 + + 2 + A413D + + 3 + X5231 + + 4 + ABE
Not smart, but I think you could do this:
SELECT id, LEAST( Locate('0',myWord), Locate('1',myWord), Locate('2',myWord), Locate('3',myWord), Locate('4',myWord), Locate('5',myWord), Locate('6',myWord), Locate('7',myWord), Locate('8',myWord), Locate('9',myWord) ) as myPos FROM myTable;