Re: cvs text to quoted cvs text

Поиск
Список
Период
Сортировка
От Michael Moore
Тема Re: cvs text to quoted cvs text
Дата
Msg-id CACpWLjPb8MerOv=nC9O99EyDN0+UMVN-+dP6sp2UO-=5Qarymg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: cvs text to quoted cvs text  (Pavel Stehule <pavel.stehule@gmail.com>)
Список pgsql-sql
Very nice, thanks Pavel.

On Mon, Sep 26, 2016 at 1:13 PM, Pavel Stehule <pavel.stehule@gmail.com> wrote:


2016-09-26 22:09 GMT+02:00 Michael Moore <michaeljmoore@gmail.com>:
Igor, not seeing how quote_literal will quote each element of the csv. It will quote the entire string, but not each element.

SELECT string_agg(quote_literal(v),',') from unnest('{AHOJ,NAZDAR}'::text[]) g(v);


Pavel, Interesting but unfortunately my dynamic sql is very complex, hundreds of lines, and a undetermined number of USING variables would be needed.

Thanks!


В списке pgsql-sql по дате отправления:

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: cvs text to quoted cvs text
Следующее
От: James Cloos
Дата:
Сообщение: using possibly null timestamptz columns