Re: Problems with Quotes - Mailing list pgsql-sql

From John DeSoi
Subject Re: Problems with Quotes
Date
Msg-id 3AA507E0-64C6-11D9-81D8-000A95B03262@pgedit.com
Whole thread Raw
In response to Problems with Quotes  (Kieran Ashley <krashley@space.qinetiq.com>)
List pgsql-sql
On Jan 12, 2005, at 1:08 PM, Kieran Ashley wrote:

> I've tried using the replace() function to get rid of the ", but I 
> can't figure out how to use it without throwing an error.  I tried
>
> replace(col_name, '\"', '')
>
> and several other permutations but to no avail, do I need to use 
> something like an ASCII character code in order to get rid of a quote? 
>  If so which one, and if not, is there a better solution?
>


Try '"' as in

select replace('this "is" it', '"', '');  replace
------------ this is it
(1 row)


John DeSoi, Ph.D.
http://pgedit.com/
Power Tools for PostgreSQL



pgsql-sql by date:

Previous
From: Kieran Ashley
Date:
Subject: Problems with Quotes
Next
From: Kieran Ashley
Date:
Subject: Re: Problems with Quotes