Re: Substitute

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Judith <jaltamirano(at)correolux(dot)com(dot)mx>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Substitute
Date: 2007-03-21 03:02:59
Message-ID: 20070321030258.GA36429@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Michael Fuhr 2007-03-21 03:32:44 Re: [SQL] ERROR: invalid byte sequence for encoding "UTF8": 0x92
Previous Message Milen A. Radev 2007-03-21 03:02:56 Re: Substitute