Re: inserting/updating a field with the contents of a text file

Поиск
Список
Период
Сортировка
От Richard Broersma Jr
Тема Re: inserting/updating a field with the contents of a text file
Дата
Msg-id 680001.76944.qm@web31804.mail.mud.yahoo.com
обсуждение исходный текст
Ответ на Re: inserting/updating a field with the contents of a text file  ("Lonni J Friedman" <netllama@gmail.com>)
Ответы Re: inserting/updating a field with the contents of a text file  ("Lonni J Friedman" <netllama@gmail.com>)
Список pgsql-novice
--- Lonni J Friedman <netllama@gmail.com> wrote:

> > (e.g. ...-c"insert into table (info) values('`sed "s/'/''/g"
> > file.txt`')" )
> >

if single quotes were your problem, then maybe you could use Postgresql's dollar sign quoting.

you could replace the ' with $myquote$.

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

Предыдущее
От: "Lonni J Friedman"
Дата:
Сообщение: Re: inserting/updating a field with the contents of a text file
Следующее
От: "Lonni J Friedman"
Дата:
Сообщение: Re: inserting/updating a field with the contents of a text file