From: | John DeSoi <desoi(at)pgedit(dot)com> |
---|---|
To: | Kieran Ashley <krashley(at)space(dot)qinetiq(dot)com> |
Cc: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: Problems with Quotes |
Date: | 2005-01-12 18:17:33 |
Message-ID: | 3AA507E0-64C6-11D9-81D8-000A95B03262@pgedit.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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
From | Date | Subject | |
---|---|---|---|
Next Message | Kieran Ashley | 2005-01-12 18:28:44 | Re: Problems with Quotes |
Previous Message | Kieran Ashley | 2005-01-12 18:08:41 | Problems with Quotes |