Quote:
|
Originally Posted by Yukke
I have a column in a table that is of type BIGINT. However the values doesnt always have the same number of digits, it can contain 11 or 13 digits (e.g. 91310140001). I need to be able to distinguish which rows contain 11 or 13 digits, which is why I want to find the length.
|
When you say number of digits, I assume you are excluding leading zeros?
If that is the case, any value > 99999999999 must have more than 11 "digits" (as you call them).
To distinguish them, you can use the case statement, where clause, if statement in a proc or function, etc.