Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 179AD1337C79 for ; Wed, 23 Feb 2011 15:13:47 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 65180-01-2 for ; Wed, 23 Feb 2011 19:13:39 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from oldperseverance.encs.concordia.ca (oldperseverance.encs.concordia.ca [132.205.96.94]) by mail.postgresql.org (Postfix) with ESMTP id 3B48A1337B95 for ; Wed, 23 Feb 2011 15:11:56 -0400 (AST) Received: from cacao.encs.concordia.ca (emilu@cacao.encs.concordia.ca [132.205.47.225]) by oldperseverance.encs.concordia.ca (envelope-from emilu@encs.concordia.ca) (8.13.7/8.13.7) with ESMTP id p1NJBsNw029841 for ; Wed, 23 Feb 2011 14:11:55 -0500 Message-ID: <4D655BFA.5010900@encs.concordia.ca> Date: Wed, 23 Feb 2011 14:11:54 -0500 From: Emi Lu Reply-To: emilu@encs.concordia.ca User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20101125 Lightning/1.0b1 Thunderbird/3.0.11 MIME-Version: 1.0 To: pgsql-sql@postgresql.org Subject: Re: quotes etc References: <201102221226.41317.johnf@jfcomputer.com> <201102221318.56516.adrian.klaver@gmail.com> In-Reply-To: <201102221318.56516.adrian.klaver@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.58 on oldperseverance.encs.concordia.ca at 2011/02/23 14:11:55 EST X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201102/112 X-Sequence-Number: 35188 On 02/22/2011 04:18 PM, Adrian Klaver wrote: > On Tuesday, February 22, 2011 12:26:41 pm John Fabiani wrote: > > > Hi, > > > I would have thought that there would be a simple built-in function that > > > would escape the quotes as ('D' Andes') to ('D\' Andes'). But I did not > > > see anything? > > > > > > I am I wrong? > > > > > > Johnf > > Dollar quoting ? : > > http://www.postgresql.org/docs/9.0/interactive/sql-syntax-lexical.html > > 4.1.2.4. Dollar-Quoted String Constants > > test(5432)aklaver=>SELECT $$D' Andes$$; > > ?column? > > ---------- > > D' Andes I like this $str$....$str$ very much! Vote for this! -- Lu Ying