Received: from tidal.ipinc.com (tidal.ipinc.com [199.245.188.85]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f0PIVfq02680 for ; Thu, 25 Jan 2001 13:31:41 -0500 (EST) (envelope-from jliang@tidal.ipinc.com) Received: from localhost (jliang@localhost) by tidal.ipinc.com (8.9.3/8.9.3) with ESMTP id KAA77524; Thu, 25 Jan 2001 10:31:36 -0800 (PST) (envelope-from jliang@tidal.ipinc.com) Date: Thu, 25 Jan 2001 10:31:36 -0800 (PST) From: Jie Liang To: Markus Wagner cc: "pgsql-sql@postgresql.org" Subject: Re: "'" in SQL INSERT statement In-Reply-To: <3A6FFC12.F5ABA71@imsd.uni-mainz.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200101/360 X-Sequence-Number: 1033 Hi, Using a backslash to escape it. insert into table(field) values('what\'s that'); Jie LIANG Internet Products Inc. 10350 Science Center Drive Suite 100, San Diego, CA 92121 Office:(858)320-4873 jliang@ipinc.com www.ipinc.com On Thu, 25 Jan 2001, Markus Wagner wrote: > Hi, > > I have some data that I wish to transfer into a database using perl/DBI. > Some of the data are strings containing the apostrophe "'" which I use > as string delimiter. > > How can I put these into my database using the INSERT statement? > > Thanks, > > Markus >