on 01-14-2016 8:45 AM
Hello Experts,
Below is the logic for regexp_replace from source DB.
Can you please help how to achieve this in Hana Scipt.
regexp_replace(field1,'^[^|]*\|([^|]*).*$','\1') as channel_1,
regexp_replace(field1,'^([^|]*\|){2}([^|]*).*$','\2') as num_channel_1,
sample data format for field1 as below
123123|444|555|6666|77|88
Thanks,
Kris
Hi Kris
I think exact function like regexp_replace is not available in HANA, you might want to use "REPLACE" , "SUBSTRING" and concat them to achieve the same.
Can you please tell me what out is your intended out put for 123123|444|555|6666|77|88 ?
Cheers
Anindya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is a typical case of misusing this community as a search engine and then coming up with a wrong answer.
REPLACE_REGEXPR - SAP HANA SQL and System Views Reference - SAP Library
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.