Can you please provide a complete example of how to use this in the
update command? ie... how do we select the table/field that we want to
interrogate and make the change to?
MphasiS Health Solutions
[mailto:pgsql-admin-owner(at)postgresql(dot)org] On Behalf Of Kevin Grittner
Sent: Tuesday, July 01, 2008 2:23 PM
To: Naomi Walker; pgsql-admin(at)postgresql(dot)org
Subject: Re: [ADMIN] Change a character in a text field
>>> Naomi Walker <nwalker(at)mhs(dot)mphasis(dot)com> wrote:
> Is there some way with a SQL state to interrogate a text field, and
> replace characters.
> For example, we would like all "|"'s to be changed to something else,
> a regular basis...
It sounds like you might want to look at the regexp_replace function:
Be sure to use a WHERE clause on your UPDATE with the ~ operator.
Sent via pgsql-admin mailing list (pgsql-admin(at)postgresql(dot)org)
To make changes to your subscription:
-- CONFIDENTIALITY NOTICE --
Information transmitted by this??e-mail is proprietary to MphasiS and/or its Customers and is intended for use only by the individual or entity to which it is addressed, and may contain information that is??privileged, confidential or exempt from disclosure under applicable law. If you are not the intended recipient or it appears that this e-mail has been forwarded to you without proper authority, you are notified that any use or dissemination of this information in any manner is strictly prohibited. In such cases, please notify us immediately at mailmaster(at)mphasis(dot)com and delete this mail from your records.
In response to
pgsql-admin by date
|Next:||From: Rafael Domiciano||Date: 2008-07-02 01:24:49|
|Subject: Re: Configuring Shared Buffers|
|Previous:||From: Kevin Grittner||Date: 2008-07-01 21:22:48|
|Subject: Re: Change a character in a text field|