Re: replace function in a query - Mailing list pgsql-general

From William Leite Araújo
Subject Re: replace function in a query
Date
Msg-id bc63ad820705210444r6c9c9b99q6b70f14ed70945fe@mail.gmail.com
Whole thread Raw
In response to replace function in a query  ("Harpreet Dhaliwal" <harpreet.dhaliwal01@gmail.com>)
List pgsql-general
    http://www.postgresql.org/docs/8.0/interactive/functions-string.html
    http://www.postgresql.org/docs/8.1/interactive/functions-string.html
    http://www.postgresql.org/docs/8.2/interactive/functions-string.html



2007/5/21, Harpreet Dhaliwal <harpreet.dhaliwal01@gmail.com>:
Hi,

I have to write a query that does the following.

select column_x from tbl_xyz
where column_y = 'abc def ghi'

new line characters i.e. '\n' in column_y should be replaced with a space character i.e. ' ' in this query.
Is there any replace function that when used in the query with colulmn_y would do it?

Thanks,
~Harpreet



--
William Leite Araújo
Analista de Banco de Dados - QualiConsult

pgsql-general by date:

Previous
From: "Harpreet Dhaliwal"
Date:
Subject: replace function in a query
Next
From: Raymond O'Donnell
Date:
Subject: Re: Trigger function which inserts into table; values from lookup