Re: How best to turn select result into options like 'a|b|c''

2021-12-20 Thread David G. Johnston
On Mon, Dec 20, 2021 at 3:24 PM Ray O'Donnell wrote: > On 20 December 2021 22:10:19 Shaozhong SHI wrote: > >> Is there a way to turn select result into something like 'a|b|c' . >> Regards, >> David >> > > On my phone so hard to reply properly, but if a, b and c are in separate > rows then you ne

Re: How best to turn select result into options like 'a|b|c''

2021-12-20 Thread Ray O'Donnell
On 20 December 2021 22:10:19 Shaozhong SHI wrote: Is there a way to turn select result into something like 'a|b|c' . Regards, David On my phone so hard to reply properly, but if a, b and c are in separate rows then you need the array_agg() and array_to_string() functions. Ray.

How best to turn select result into options like 'a|b|c''

2021-12-20 Thread Shaozhong SHI
Is there a way to turn select result into something like 'a|b|c' . Regards, David