From: | Rui Hua <365507506hua(at)gmail(dot)com> |
---|---|
To: | ingoos(at)gmail(dot)com, pgadmin-support(at)postgresql(dot)org |
Subject: | Re: replace |
Date: | 2013-08-21 03:19:25 |
Message-ID: | 521431BD.9090905@gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgadmin-support |
Hi,
where does your 'abcd\efg' data resource come from ? if application
program data was passed into database,you should make '\' into '\\', Then,
execute the following command:
select replace ('abcd\\efg', '\\', 'XX');
replace text
1
abcdXXefg
> Put letter E before each string.
>
> E'\'
>
> Like this.
>
> Regards, Alexander Yerenkow
>
> 20.08.2013 16:02 пользователь "ingoos" <ingoos(at)gmail(dot)com
> <mailto:ingoos(at)gmail(dot)com>> написал:
>
> 9.2.4. ??
>
> i'm using pgAdmin 1.16.1
>
> and error is
>
> WARNING: nonstandard use of escape in a string literal
> LINE 1: select replace ('abcd\efg', '\', 'XX');
> ^
> HINT: Use the escape string syntax for escapes, e.g., E'\r\n'.
> WARNING: nonstandard use of \' in a string literal
> LINE 1: select replace ('abcd\efg', '\', 'XX');
> ^
>
>
>
>
>
> --
> View this message in context:
> http://postgresql.1045698.n5.nabble.com/replace-tp5768024p5768044.html
> Sent from the PostgreSQL - pgadmin support mailing list archive at
> Nabble.com.
>
>
> --
> Sent via pgadmin-support mailing list
> (pgadmin-support(at)postgresql(dot)org
> <mailto:pgadmin-support(at)postgresql(dot)org>)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgadmin-support
>
From | Date | Subject | |
---|---|---|---|
Next Message | Michal Kozusznik | 2013-08-21 12:16:58 | Re: MAC line ends strange issue |
Previous Message | Alexander Yerenkow | 2013-08-20 13:11:01 | Re: replace |