From: | Raghavendra <raghavendra(dot)rao(at)enterprisedb(dot)com> |
---|---|
To: | Dean Rasheed <dean(dot)a(dot)rasheed(at)gmail(dot)com> |
Cc: | Thomas Kellerer <spam_eater(at)gmx(dot)net>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: Backslashitis |
Date: | 2012-06-14 12:48:38 |
Message-ID: | CA+h6AhjK6TpRwh17r19xKZGW7+cTe8+iikxQYSTp_7R_KRcQFg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
>
> With standard conforming strings on, you could use any of the following:
>
> update foo set a= E'{"blah \\\\here"}';
> update foo set a= '{"blah \\here"}';
> update foo set a= ARRAY[E'blah \\here'];
> update foo set a= ARRAY['blah \here'];
>
> I tend to prefer the ARRAY[...] constructor syntax because it doesn't
> require any additional escaping of individual elements.
>
>
> http://www.postgresql.org/docs/current/static/sql-syntax-lexical.html#SQL-SYNTAX-STRINGS-ESCAPE
>
>
> http://www.postgresql.org/docs/current/static/sql-expressions.html#SQL-SYNTAX-ARRAY-CONSTRUCTORS
>
> Regards,
> Dean
>
Thanks
---
Regards,
Raghavendra
EnterpriseDB Corporation
Blog: http://raghavt.blogspot.com/
From | Date | Subject | |
---|---|---|---|
Next Message | Andreas Kretschmer | 2012-06-14 13:01:29 | Re: about seperate users in PostgreSQL |
Previous Message | Dean Rasheed | 2012-06-14 12:39:25 | Re: Backslashitis |