pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kenneth Marshall <ktm@rice.edu>
To: John Fabiani <johnf@jfcomputer.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: quotes etc
Date: Tue, 22 Feb 2011 14:48:12 -0600
Message-ID: <20110222204812.GA9375@aart.is.rice.edu> (raw)
In-Reply-To: <201102221226.41317.johnf@jfcomputer.com>
References: <201102221226.41317.johnf@jfcomputer.com>

On Tue, Feb 22, 2011 at 12:26:41PM -0800, John Fabiani wrote:
> Hi,
> I would have thought that there would be a simple built-in function that would 
> escape the quotes as ('D' Andes')  to ('D\' Andes').  But I did not see 
> anything?
> 
> I am I wrong?
> 
> Johnf
> 

The manual goes over many permutations of the escape process and
what options can be used in each case. I would start there, because
for example, escaping a "'" in SQL uses two "'"s: i.e. 'D' Andes'
becomes 'D'' Andes' I think. Procedural languages and libpq can
offer many other options for escape processing.

Cheers,
Ken



view thread (4+ messages)  latest in thread

Message-ID: <20110222204812.GA9375@aart.is.rice.edu>
Permalink:  ../20110222204812.GA9375@aart.is.rice.edu/
Also on:    postgresql.org/message-id/20110222204812.GA9375@aart.is.rice.edu

 · 

reply

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-sql@postgresql.org
  Cc: ktm@rice.edu, johnf@jfcomputer.com
  Subject: Re: quotes etc
  In-Reply-To: <20110222204812.GA9375@aart.is.rice.edu>

* 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