How can you tell if a value is not numeric in Oracle?

前端 未结 6 1194
渐次进展
渐次进展 2020-11-27 05:37

I have the following code that returns an error message if my value is invalid. I would like to give the same error message if the value given is not numeric.



        
6条回答
  •  北海茫月
    2020-11-27 06:01

    REGEXP_LIKE(column, '^[[:digit:]]+$')
    

    returns TRUE if column holds only numeric characters

提交回复
热议问题