Re: INSERT INTO

From: Richard Broersma Jr <rabroersma(at)yahoo(dot)com>
To: Shavonne Marietta Wijesinghe <shavonne(dot)marietta(at)studioform(dot)it>, pgsql-sql(at)postgresql(dot)org
Subject: Re: INSERT INTO
Date: 2007-03-16 13:02:29
Message-ID: 971034.75143.qm@web31814.mail.mud.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

> When i have a string that has a ' inside of it the record is not inserted in to TABLE2. I know
> that writing it twice will fix it but how can i ask my ASP code to do it..
>
> INSERT INTO TABLE2 (TE_INDI) VALUES ('SANT'ANGELO LODIGIANO');

If you are using PostgreSQL >= 8.0 you can use dollars sign quoting like the following:

INSERT INTO TABLE2 (TE_INDI) VALUES ($SANT'ANGELO LODIGIANO$);

or even a custom quotation identifier:

INSERT INTO TABLE2 (TE_INDI) VALUES ($myquote$SANT'ANGELO LODIGIANO$myquote$);

Would this work in ASP?

Regards,
Richard Broersma Jr.

In response to

  • INSERT INTO at 2007-03-16 08:50:20 from Shavonne Marietta Wijesinghe

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Richard Broersma Jr 2007-03-16 13:08:24 Re: INSERT INTO
Previous Message Guillaume Lelarge 2007-03-16 12:07:15 Re: INSERT INTO