Re: Substitute - Mailing list pgsql-sql

From Michael Fuhr
Subject Re: Substitute
Date
Msg-id 20070321030258.GA36429@winnie.fuhr.org
Whole thread Raw
In response to Substitute  (Judith <jaltamirano@correolux.com.mx>)
List pgsql-sql
On Tue, Mar 20, 2007 at 05:54:47PM -0600, Judith wrote:
> somebody knows, how I can substitute in a query if a field contains a 
> character that I want to be shown with other character?
> 
> for example if I have a \n I want to shows me a ~ in the result of the 
> select

One way is with translate().  See "String Functions and Operators"
in the documentation for more information.

http://www.postgresql.org/docs/8.2/interactive/functions-string.html

-- 
Michael Fuhr


pgsql-sql by date:

Previous
From: "Milen A. Radev"
Date:
Subject: Re: Substitute
Next
From: Michael Fuhr
Date:
Subject: Re: [ADMIN] ERROR: invalid byte sequence for encoding "UTF8": 0x92