From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Meskes <meskes@postgreSQL.org>
Cc: PostgreSQL Interfaces <pgsql-interfaces@postgreSQL.org>
Subject: Re: [INTERFACES] escaping characters ...
Date: Tue, 04 Jan 2000 16:43:25 -0500
Message-ID: <14678.947022205@sss.pgh.pa.us> (raw)
In-Reply-To: <20000104205359.C814@fam-meskes.de>
References: <20000104205359.C814@fam-meskes.de>
Michael Meskes <meskes@postgreSQL.org> writes:
> On Tue, Jan 04, 2000 at 01:12:58PM -0500, Tom Lane wrote:
>> When generating quoted strings for use in SQL commands, you should
>> prefix single-quote (') and backslash (\) characters with a backslash.
> Isn't the correct way to quote a single-quote with yet another single-quote?
Yeah, doubled '' works too (but only in SQL literals, not in COPY data).
Take your pick...
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: tgl@sss.pgh.pa.us, meskes@postgreSQL.org
Subject: Re: [INTERFACES] escaping characters ...
In-Reply-To: <14678.947022205@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox