Re: [GENERAL] Problem with apostrophe

From: Byron Nikolaidis <byronn(at)insightdist(dot)com>
To: eric(at)gateway(dot)ctlno(dot)com
Cc: pgsql-general(at)postgreSQL(dot)org
Subject: Re: [GENERAL] Problem with apostrophe
Date: 1998-06-17 19:54:51
Message-ID: 35881F0B.5FC2DDEE@insightdist.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Just escape the apostrophe with a backslash.

Byron

eric(at)gateway(dot)ctlno(dot)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.
>
> There must be a work-around, but I can not find any solution.
>
> thank you for your help

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Brett W. McCoy 1998-06-17 19:57:47 Re: [GENERAL] Problem with apostrophe
Previous Message eric 1998-06-17 19:44:38 Re: [GENERAL] Problem with apostrophe