So effectively on retrieval your field goes though a digits routine, and of the results from this, characters 1 through 9 are then returned through the use of the substr function.
zrazzaq,
This piece of code looks at a numeric column, turns it into a character column (that's the DIGITS bit), and then outputs from position 1 for 9 characters (the SUBSTR 1,9 bit).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.