Is there an inbuilt DB2 function or any query to check if the character i have is a number? (I cannot use user defined functions)
Doc Link
CASE WHEN LENGTH(RTRIM(TRANSLATE(test_str, '*', ' 0123456789'))) = 0 THEN 'All digits' ELSE 'No' END
2.1m questions
2.1m answers
60 comments
57.0k users