Re: [INTERFACES] escaping characters ...

From: Michael Meskes <meskes(at)postgresql(dot)org>
To: PostgreSQL Interfaces <pgsql-interfaces(at)postgresql(dot)org>
Subject: Re: [INTERFACES] escaping characters ...
Date: 2000-01-04 19:53:59
Message-ID: 20000104205359.C814@fam-meskes.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

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.
> I think that's all.

Isn't the correct way to quote a single-quote with yet another single-quote?

Michael
--
Michael Meskes | Go SF 49ers!
Th.-Heuss-Str. 61, D-41812 Erkelenz | Go Rhein Fire!
Tel.: (+49) 2431/72651 | Use Debian GNU/Linux!
Email: Michael(at)Fam-Meskes(dot)De | Use PostgreSQL!

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Tom Lane 2000-01-04 21:43:25 Re: [INTERFACES] escaping characters ...
Previous Message Bruce Momjian 2000-01-04 19:37:30 Re: [GENERAL] Announce: PostgreSQL-6.5.3 binaries available forWindows NT