Re: quotes etc

From: Adrian Klaver <adrian(dot)klaver(at)gmail(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Cc: John Fabiani <johnf(at)jfcomputer(dot)com>
Subject: Re: quotes etc
Date: 2011-02-22 21:18:56
Message-ID: 201102221318.56516.adrian.klaver@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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

--
Adrian Klaver
adrian(dot)klaver(at)gmail(dot)com

In response to

  • quotes etc at 2011-02-22 20:26:41 from John Fabiani

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Emi Lu 2011-02-23 19:11:54 Re: quotes etc
Previous Message Kenneth Marshall 2011-02-22 20:48:12 Re: quotes etc