Re: inserting/updating a field with the contents of a text file - Mailing list pgsql-novice

From Richard Broersma Jr
Subject Re: inserting/updating a field with the contents of a text file
Date
Msg-id 680001.76944.qm@web31804.mail.mud.yahoo.com
Whole thread Raw
In response to Re: inserting/updating a field with the contents of a text file  ("Lonni J Friedman" <netllama@gmail.com>)
Responses Re: inserting/updating a field with the contents of a text file
List 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 by date:

Previous
From: "Lonni J Friedman"
Date:
Subject: Re: inserting/updating a field with the contents of a text file
Next
From: "Lonni J Friedman"
Date:
Subject: Re: inserting/updating a field with the contents of a text file