pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: mallah@trade-india.com
To: dave_h4@yahoo.com
Cc: pgsql-sql@postgresql.org
Subject: Re: escape single quote in INSERT command
Date: Wed, 27 Nov 2002 00:01:26 +0530 (IST)
Message-ID: <47269.203.145.129.4.1038335486.squirrel@mail.trade-india.com> (raw)
In-Reply-To: <27ad91d2.0211220500.19633b93@posting.google.com>
References: <27ad91d2.0211220500.19633b93@posting.google.com>

> Hi Group -
>
> I have a perl application for a registration form.

Same Here,

Why dont' you use prepare and execute  in case you are using DBI
same program is like this.

$dbh = DBI -> connect ( "......");
$sth = $dbh -> prepare("insert into tab (a,b) values (?,?)");
$sth -> execute($a , $b );
$sth -> finish();
$dbh -> commit();
$dbh -> disconnect();


regds
mallah.


I'd like to put escape characters in my
> insert command to accommodate for '
> (i.e. O'Brien, O'Malley, etc). I've tired double quotes, single
> quotes, back tick, forward ticks, curly bracket, round brackets - no success.
>
>
> Thanks, dave
>
> ---------------------------(end of broadcast)--------------------------- TIP 6: Have you
> searched our list archives?
>
> http://archives.postgresql.org



-----------------------------------------
Get your free web based email at trade-india.com.
   "India's Leading B2B eMarketplace.!"
http://www.trade-india.com/





view thread (8+ messages)  latest in thread

Message-ID: <47269.203.145.129.4.1038335486.squirrel@mail.trade-india.com>
Permalink:  ../47269.203.145.129.4.1038335486.squirrel@mail.trade-india.com/
Also on:    postgresql.org/message-id/47269.203.145.129.4.1038335486.squirrel@mail.trade-india.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: mallah@trade-india.com, dave_h4@yahoo.com
  Subject: Re: escape single quote in INSERT command
  In-Reply-To: <47269.203.145.129.4.1038335486.squirrel@mail.trade-india.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