pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: José Soares <jose@sferacarta.com>
To: Ken J. Wright <ken@ori-ind.com>
Cc: Henk Jan Barendregt <henkjan@barendregt.xs4all.nl>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: [INTERFACES] How to store '
Date: Mon, 10 May 1999 14:56:15 +0200
Message-ID: <3736D76F.22323FEE@sferacarta.com> (raw)
References: <3.0.32.19990507132105.008d9a40@ren.cncware.com>

"Ken J. Wright" ha scritto:

> You have to preceed each occurence of ' with a \.
> So "test'string" becomes "test\'string".
>

SQL92 says that you have to use the ' twice. If you want to write portable
code, then:

INSERT INTO table1 VALUES('WHAT''S THAT ?');
and it becomes: WHAT'S THAT ?.

______________________________________________________________
PostgreSQL 6.5.0 on i586-pc-linux-gnu, compiled by gcc 2.7.2.3
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jose'





view thread (8+ messages)  latest in thread

Message-ID: <3736D76F.22323FEE@sferacarta.com>
Permalink:  ../3736D76F.22323FEE@sferacarta.com/
Also on:    postgresql.org/message-id/3736D76F.22323FEE@sferacarta.com

 · 

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-interfaces@postgresql.org
  Cc: jose@sferacarta.com, ken@ori-ind.com, henkjan@barendregt.xs4all.nl
  Subject: Re: [INTERFACES] How to store '
  In-Reply-To: <3736D76F.22323FEE@sferacarta.com>

* 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