Re: [GENERAL] field delimiter... - Mailing list pgsql-general

From Anton Stöckl
Subject Re: [GENERAL] field delimiter...
Date
Msg-id 355FEC38.A886615F@cys.de
Whole thread Raw
In response to field delimiter...  (The Hermit Hacker <scrappy@hub.org>)
List pgsql-general
The Hermit Hacker wrote:
>
> Hello to everyone, I am using FreeBSD 3.0-current, Postgres-6.3.2 and
> heitml-1.2.3 for doing my degree at university on a research work...
>
> Now I have to use some fields in a table that can contain the ' which is
> very common in italian language ...
>
> Is there a way of escape this one so I can put fields like :
>
> "Di che colore e' l'albero ?"

You'll have to use two single quotes like:

insert into table values ('Di che colore e'' l''albero ?');

-Tony
--
----------C-Y-B-E-R-S-O-L-U-T-I-O-N-S----------------
Anton Stöckl                    mailto:tony@cys.de
CyberSolutions GmbH             http://www.cys.de
Frankfurter Ring 193A           Phone +49 89 32369223
80807 Muenchen                  Fax   +49 89 32369220
------W-E----M-A-K-E----I-T----P-O-S-S-I-B-L-E-------

pgsql-general by date:

Previous
From: Yogesh Bhanu
Date:
Subject: dbengine problems
Next
From: solo3@mail.chierinet.it (Ferruccio Zamuner)
Date:
Subject: subscribe