Re: [INTERFACES] How to store ' - Mailing list pgsql-interfaces

From José Soares
Subject Re: [INTERFACES] How to store '
Date
Msg-id 3736D76F.22323FEE@sferacarta.com
Whole thread Raw
In response to Re: [INTERFACES] How to store '  ("Ken J. Wright" <ken@ori-ind.com>)
List 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'




pgsql-interfaces by date:

Previous
From: GL2i
Date:
Subject: jdbc driver for postgresql
Next
From: SJ Wright
Date:
Subject: postgres -> ms sql7 odbc driver