Received: from symcom.com ([209.11.41.82]) by postgresql.org (8.11.3/8.11.4) with ESMTP id fB2LZem43627 for ; Sun, 2 Dec 2001 16:35:41 -0500 (EST) (envelope-from pgsql@symcom.com) Message-Id: <200112022135.fB2LZem43627@postgresql.org> Received: from WorldClient [209.11.41.82] by symcom.com [209.11.41.82] with SMTP (MDaemon.v3.5.0.R) for ; Sun, 02 Dec 2001 16:48:12 -0500 Date: Sun, 02 Dec 2001 16:48:11 -0500 From: "postgresql" To: "Megalex" , pgsql-sql@postgresql.org Subject: Re: problems with single quotes.. X-Mailer: WorldClient Pro 2.2.1 In-Reply-To: <000b01c07680$29fb2430$0301a8c0@klanomega.com> X-MDRemoteIP: 209.11.41.82 X-Return-Path: pgsql@symcom.com X-MDaemon-Deliver-To: pgsql-sql@postgresql.org X-Archive-Number: 200112/11 X-Sequence-Number: 5834 > Insert Into table(userID,FirstName,LastName) values(1,'''\''','test') I don't know if you have been able to figure out yet what you need but think of it this way: 'Nick' is a quoted word. let's form the possesive (nick's) 'Nick\'s' notice you still have the outside quotes. The slash is telling the system to ignore the single quote that directly follows it. so what you want is: INSERT INTO table (userID, FirstName, LastName) VALUES (1, 'william', 'L\'sale') if you intend to have a single quote in the middle of a string (L'sale) Ted -----Original Message----- From: "Megalex" To: Date: Thu, 4 Jan 2001 12:57:19 -0600 Subject: [SQL] problems with single quotes.. > ok.. here is my deal.. > > everytime i try to run an insert and my text contains '\' > it fails.. > > an sql example would be. > > Insert Into table(userID,FirstName,LastName) values(1,'''\''','test') > and i get this message... > > Error while executing the query; ERROR: parser: parse error at or near > "test" > > how can i fix this?? > > Alex,