Quantcast
Channel: SCN: Message List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 9165

Re: HANA Instr function to check for numbers?

$
0
0

Hi Echo,

 

I think that with a slight modification in Lars code,  you can acieve it

After replacing all the numbers with empty string, if the modified string is still same as the original string then the original string doesn't contain any numbers.

 

instead of  ::

 

if length(:tmp_string)>0 then

    isNumeric := 0;

else  

    isNumeric := 1;

end if;

 

you can replace it with

 

 

if length(:tmp_string)= length(:checkString) then

    isNumeric := 0;

else  

    isNumeric := 1;

end if;

 

Thanks to Lars for the cool logic.

 

Regards,

Lalu George


Viewing all articles
Browse latest Browse all 9165

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>