Re: [GENERAL] Problem with apostrophe - Mailing list pgsql-general

From Amos Hayes
Subject Re: [GENERAL] Problem with apostrophe
Date
Msg-id Pine.LNX.3.96.980617151002.14569B-100000@smurf.ingenia.com
Whole thread Raw
In response to Problem with apostrophe  (eric@gateway.ctlno.com)
Responses Re: [GENERAL] Problem with apostrophe  ("Brett W. McCoy" <bmccoy@lan2wan.com>)
List pgsql-general
On Wed, 17 Jun 1998 eric@gateway.ctlno.com wrote:

> Is there any way of having an apostrophe in a data field?
> It is a problem because the apostrophe is the same character as the single
> quote, so the database gets a parser error when a name such as "O'Brian"
> is entered.

Have you tried doubling up?   'O''Brian'

That is what I have to do in Oracle anyway.

--
Amos Hayes                      Systems Architect
ahayes@ingenia.com            Ingenia Group - Software Kinetics Ltd.
http://smurf.ingenia.com/~ahayes        http://www.ingenia.com

"Remember: No one can make you feel inferior without your consent."
   - ELEANOR ROOSEVELT


pgsql-general by date:

Previous
From: The Hermit Hacker
Date:
Subject: Re: [GENERAL] User Gallery...
Next
From: "Brett W. McCoy"
Date:
Subject: Re: [GENERAL] Problem with apostrophe