Options
replace string with single quote string
Saurabh_Sawant_24
Member Posts: 7 Contributor I
I have a column attribute with following values as
SENDER BANK
RECEIVING BANK
SENDER
RECEIVER
I want a result in single string as follows:
'SENDER BANK','RECEIVING BANK','SENDER','RECEIVER'
SENDER BANK
RECEIVING BANK
SENDER
RECEIVER
I want a result in single string as follows:
'SENDER BANK','RECEIVING BANK','SENDER','RECEIVER'
Tagged:
1
Best Answer
-
Optionskayman Member Posts: 662 UnicornStep 1 : Replace your attribute as follows : find ^(.*)$ and replace with '$1' , this already quotes your attribute
Step 2 : Use the aggregate operator and use concatenate. Now you will get 'SENDER BANK'|'RECEIVING BANK'|...
Step 3 : Replace \| (escaped pipe symbol) with , (comma)8