From: | William Leite Araújo <william(dot)bh(at)gmail(dot)com> |
---|---|
To: | "Harpreet Dhaliwal" <harpreet(dot)dhaliwal01(at)gmail(dot)com> |
Cc: | "Postgres General" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: replace function in a query |
Date: | 2007-05-21 11:44:23 |
Message-ID: | bc63ad820705210444r6c9c9b99q6b70f14ed70945fe@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(dot)dhaliwal01(at)gmail(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Raymond O'Donnell | 2007-05-21 12:21:59 | Re: Trigger function which inserts into table; values from lookup |
Previous Message | Harpreet Dhaliwal | 2007-05-21 11:35:19 | replace function in a query |