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

From: Richard Broersma Jr <rabroersma(at)yahoo(dot)com>
To: Lonni J Friedman <netllama(at)gmail(dot)com>, George Pavlov <gpavlov(at)mynewplace(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: inserting/updating a field with the contents of a text file
Date: 2007-09-25 01:50:39
Message-ID: 680001.76944.qm@web31804.mail.mud.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice


--- Lonni J Friedman <netllama(at)gmail(dot)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$.

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Lonni J Friedman 2007-09-25 01:57:09 Re: inserting/updating a field with the contents of a text file
Previous Message Lonni J Friedman 2007-09-25 01:14:18 Re: inserting/updating a field with the contents of a text file