pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Broersma Jr <rabroersma@yahoo.com>
To: Shavonne Marietta Wijesinghe <shavonne.marietta@studioform.it>
To: pgsql-sql@postgresql.org
Subject: Re: INSERT INTO
Date: Fri, 16 Mar 2007 06:02:29 -0700 (PDT)
Message-ID: <971034.75143.qm@web31814.mail.mud.yahoo.com> (raw)
In-Reply-To: <002c01c767a8$20d5d600$1102a8c0@dream>

> 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.



view thread (13+ messages)  latest in thread

Message-ID: <971034.75143.qm@web31814.mail.mud.yahoo.com>
Permalink:  ../971034.75143.qm@web31814.mail.mud.yahoo.com/
Also on:    postgresql.org/message-id/971034.75143.qm@web31814.mail.mud.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: rabroersma@yahoo.com, shavonne.marietta@studioform.it
  Subject: Re: INSERT INTO
  In-Reply-To: <971034.75143.qm@web31814.mail.mud.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox