escape character for 'psql -c ' command

From: Gary Fu <gfu(at)sigmaspace(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: escape character for 'psql -c ' command
Date: 2010-11-15 23:17:10
Message-ID: ibsf1m$30t4$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

How do I escape both " and ' to be used in the 'psql -c ' command ?
For example, how to make the psql command {\copy "Table" from
'txt_file'} to be used in the psql with -c option (psql -c) ?
The "Table" has to be double quoted here.

Thanks,
Gary

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Lee Hachadoorian 2010-11-15 23:53:18 Re: The first dedicated PostgreSQL forum
Previous Message Jeff Davis 2010-11-15 21:47:00 Re: v9 deployment advise