Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id CFE56B5DE67 for ; Fri, 4 Nov 2011 11:57:43 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 16283-03-2 for ; Fri, 4 Nov 2011 14:57:37 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 1A693B5DDD2 for ; Fri, 4 Nov 2011 11:57:25 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id pA4EvOHS007744; Fri, 4 Nov 2011 10:57:24 -0400 (EDT) To: John Fabiani cc: "pgsql-sql@postgresql.org" Subject: Re: the use of $$string$$ In-reply-to: <201111040738.29303.johnf@jfcomputer.com> References: <201111040738.29303.johnf@jfcomputer.com> Comments: In-reply-to John Fabiani message dated "Fri, 04 Nov 2011 07:38:29 -0700" Date: Fri, 04 Nov 2011 10:57:24 -0400 Message-ID: <7743.1320418644@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-3.101 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-1.201 X-Spam-Level: X-Archive-Number: 201111/15 X-Sequence-Number: 35988 John Fabiani writes: > I just discovered that I can use $$string$$ to account for the problem of > single quotes in the string (or other strange char's). However, I noticed > that the table field contained E'string'. I actually tried to find info on > this but I did not find anything. > Could someone explain what it means or better provide a web link for me to > discover the info. http://www.postgresql.org/docs/9.1/static/sql-syntax-lexical.html See "4.1.2.4. Dollar-quoted String Constants", about halfway down the page. You might care to read the rest of 4.1.2 while at it. regards, tom lane