Search Postgresql Archives

R: Re: quote string exactly as it is

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks a lot for replies! Dollar quote is what I needed, but I could find it 
in!

Dario

>----Messaggio originale----
>Da: mmoncure@xxxxxxxxx
>Data: 
02/12/2009 14.15
>A: "dario.ber@xxxxxxxxx"<dario.ber@xxxxxxxxx>
>Cc: <pgsql-
general@xxxxxxxxxxxxxx>
>Ogg: Re:  quote string exactly as it is
>
>On 
Wed, Dec 2, 2009 at 7:10 AM, dario.ber@xxxxxxxxx <dario.ber@xxxxxxxxx> wrote:

>> Hello,
>>
>> How can I quote a string *exactly* as it is? I tried using
>> 
quote_literal() but it doesn't return what I need in some cases.
>>
>> E.g.
>>

>> If my
>> string is: ss\\\ss
>
>dollar quote it:
>
>select $abc$ss\\\ss$abc$;

>
>merlin
>



-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux