Re: [INTERFACES] escaping characters ...

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Michael Meskes <meskes(at)postgreSQL(dot)org>
Cc: PostgreSQL Interfaces <pgsql-interfaces(at)postgreSQL(dot)org>
Subject: Re: [INTERFACES] escaping characters ...
Date: 2000-01-04 21:43:25
Message-ID: 14678.947022205@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

Michael Meskes <meskes(at)postgreSQL(dot)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

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message Kevin Lo 2000-01-05 06:10:18 Re: [GENERAL] Announce: PostgreSQL-6.5.3 binaries available forWindowsNT
Previous Message Michael Meskes 2000-01-04 19:53:59 Re: [INTERFACES] escaping characters ...