Re: [INTERFACES] How to store '

From: "Ken J(dot) Wright" <ken(at)ori-ind(dot)com>
To: pgsql-interfaces(at)postgreSQL(dot)org
Subject: Re: [INTERFACES] How to store '
Date: 1999-05-10 16:38:58
Message-ID: 3.0.32.19990510093856.00803e20@ren.cncware.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

At 02:56 PM 5/10/99 +0200, you wrote:
>"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 ?.

But just to clarify further, that only works with sql. Copy needs the '\'
approach.
So many choices ;-)

Ken

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Hannu Krosing 1999-05-10 17:21:57 Re: [INTERFACES] postgres -> ms sql7 odbc driver
Previous Message Adam H. Pendleton 1999-05-10 16:37:24 Java and PGSQL date question