I have data in a table like this:
xxx-xxxxxxx-29
xxx-xxxxxx-87
xxx-xxxxxxxxx-2
xxx-xxx-33
I need to replace every -n at the end with -0n (to add a zero between the dash and the number). Leave -nn as it is.
So, if 2nd character from the right is '-' replace it with '-0'
can this be done using UPDATE?