Received: from sss.pgh.pa.us ([192.204.191.242]) by postgresql.org (8.11.3/8.11.4) with ESMTP id fB2F0Tm24995 for ; Sun, 2 Dec 2001 10:00:30 -0500 (EST) (envelope-from tgl@sss.pgh.pa.us) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.4/8.11.4) with ESMTP id fB2F0Ni20969; Sun, 2 Dec 2001 10:00:23 -0500 (EST) To: "Megalex" cc: pgsql-sql@postgresql.org Subject: Re: problems with single quotes.. In-reply-to: <000b01c07680$29fb2430$0301a8c0@klanomega.com> References: <20011201182212.R74581-100000@megazone23.bigpanda.com> <000b01c07680$29fb2430$0301a8c0@klanomega.com> Comments: In-reply-to "Megalex" message dated "Thu, 04 Jan 2001 12:57:19 -0600" Date: Sun, 02 Dec 2001 10:00:22 -0500 Message-ID: <20966.1007305222@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200112/9 X-Sequence-Number: 5832 "Megalex" writes: > Insert Into table(userID,FirstName,LastName) values(1,'''\''','test') You're not counting/escaping your quotes correctly. That literal is unterminated: ' opening quote '' quoted quote (to put a quote in the string) \' escaped quote (another way to do the same) '' quoted quote oops you're still inside the literal I don't know what combination of quotes and/or backslashes you actually meant to insert, but this command is wrong. regards, tom lane