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

Re: PATINDEX EQUIVALENT FUNCTION IN HANA???

$
0
0

Hello Narseh,

 

and why it should not work? As string in which you want to search the substring you can of course also reference a column.

 

Check following example with your sample data:

Unbenannt.PNG

You can see that the two values with a dash shows the correct position. The last value where no dash is part of the string you get a zero (obviously I think also the last value should be 2016-march; but I used your typo to show that in case that the substring is not founda zero is returned ).

 

Regards,

Florian


Viewing all articles
Browse latest Browse all 9165

Trending Articles



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