Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have a name field
I want to concatenate all the names within single quotes
Ex : Name
Sam
John
Adam
Alex
I want the result to be
'Sam','John','Adam',' Alex'
Want it to be done in script not front end
Any ideas ?
Try this
[Your table]:
Load concat(CHR(39)&Names&CHR(39),',') as ResultNames;
LOAD Names
FROM Your file;
Try this
[Your table]:
Load concat(CHR(39)&Names&CHR(39),',') as ResultNames;
LOAD Names
FROM Your file;
T:
LOAD * INLINE [
Name
Sam
John
Adam
Alex
];
LOAD chr(39) & Concat(Name,chr(39)&','& chr(39)) & chr(39) as value Resident T;
Thank you guys