Re: [INTERFACES] How to store '

From: José Soares <jose(at)sferacarta(dot)com>
To: "Ken J(dot) Wright" <ken(at)ori-ind(dot)com>
Cc: Henk Jan Barendregt <henkjan(at)barendregt(dot)xs4all(dot)nl>, pgsql-interfaces(at)postgresql(dot)org
Subject: Re: [INTERFACES] How to store '
Date: 1999-05-10 12:56:15
Message-ID: 3736D76F.22323FEE@sferacarta.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

"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'

In response to

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message abdelkrim 1999-05-10 15:50:49 Re: [INTERFACES] How to store '
Previous Message GL2i 1999-05-10 10:37:27 jdbc driver for postgresql