Since quite a lot was said about performance, I woulkd further simplify the above suggestion to:Originally posted by DaPi
Watch out!
substr('12345',1) = '12345' and ascii() is platform dependant.
I'd vote for:
SUBSTR (v_str, 1, 1) BETWEEN '0' AND '9'
ommiting unneccesary SUBSTR() call.Code:v_str BETWEEN '0' AND '9'




Reply With Quote