Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 4A1F3475AAC for ; Tue, 26 Nov 2002 13:31:38 -0500 (EST) Received: from rtlocal.trade-india.com (mail-relay.trade-india.com [203.196.129.235]) by postgresql.org (Postfix) with SMTP id 9C7DC475E2B for ; Tue, 26 Nov 2002 13:31:34 -0500 (EST) Received: (qmail 25298 invoked from network); 26 Nov 2002 18:21:23 -0000 Received: from news1.trade-india.com (HELO www.trade-india.com) (130.94.20.27) by infocom-236-129-del.trade-india.com with SMTP; 26 Nov 2002 18:21:23 -0000 Received: (qmail 18345 invoked by uid 99); 26 Nov 2002 18:31:26 -0000 Received: from 203.145.129.4 (proxying for 203.145.130.142) (SquirrelMail authenticated user mallah) by mail.trade-india.com with HTTP; Wed, 27 Nov 2002 00:01:26 +0530 (IST) Message-ID: <47269.203.145.129.4.1038335486.squirrel@mail.trade-india.com> Date: Wed, 27 Nov 2002 00:01:26 +0530 (IST) Subject: Re: escape single quote in INSERT command From: To: In-Reply-To: <27ad91d2.0211220500.19633b93@posting.google.com> References: <27ad91d2.0211220500.19633b93@posting.google.com> X-Priority: 3 Importance: Normal X-MSMail-Priority: Normal Cc: X-Mailer: SquirrelMail (version 1.2.6) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/405 X-Sequence-Number: 10547 > 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/