cancel
Showing results for 
Search instead for 
Did you mean: 

how to check to see if a value is numeric in sap hana

Former Member
0 Kudos

Hi,

Is there a SQL function or Calculation functions in HANA that
checks for a data type?

I need to check a column value to see if it contains numbers or characters,
but I don't see any functions that will do that.

Is there an IS_NUMERIC equivalent function is HANA?

Thank You,

Hyun Grasso

View Entire Topic
jan_nyfeler2
Explorer
0 Kudos

Why not use LOCATE_REGEXPR?

https://help.sap.com/docs/SAP_HANA_PLATFORM/4fe29514fd584807ac9f2a04f6754767/cb4866494bd647cd8926763...

LOCATE_REGEXPR('^(0|[1-9][0-9]*)$' in <Your_Col_Name>)