Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Admin > Re: Change a ch...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 4 Topic 5109 of 5413
Post > Topic >>

Re: Change a character in a text field

by kstone@[EMAIL PROTECTED] (Karen Stone) Jul 1, 2008 at 04:00 PM

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?

Thanks!

Karen Stone
Technical Services
MphasiS Health Solutions
602.604.3100 x265

-----Original Message-----
From: pgsql-admin-owner@[EMAIL PROTECTED]
 On Behalf Of Kevin Grittner
Sent: Tuesday, July 01, 2008 2:23 PM
To: Naomi Walker; pgsql-admin@[EMAIL PROTECTED]
 Re: [ADMIN] Change a character in a text field

>>> Naomi Walker <nwalker@[EMAIL PROTECTED]
> wrote:=20
> Is there some way with a SQL state to interrogate a text field, and=20
> replace characters.
>=20
> For example, we would like all "|"'s to be changed to something else,
on=20
> a regular basis...
=20
It sounds like you might want to look at the regexp_replace function:
=20
http://www.postgresql.org/docs/8.3/interactive/functions-matching.html#F
UNCTIONS-POSIX-REGEXP
=20
Be sure to use a WHERE clause on your UPDATE with the ~ operator.
=20
-Kevin

--=20
Sent via pgsql-admin mailing list (pgsql-admin@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

-- CONFIDENTIALITY NOTICE --

Information transmitted by this??e-mail is proprietary to MphasiS and/or
it=
s Customers and is intended for use only by the individual or entity to
whi=
ch it is addressed, and may contain information that is??privileged,
confid=
ential or exempt from disclosure under applicable law. If you are not the
i=
ntended 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,
plea=
se notify us immediately at mailmaster@[EMAIL PROTECTED]
 and delete this mail
fro=
m your records.

--=20
Sent via pgsql-admin mailing list (pgsql-admin@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
 




 4 Posts in Topic:
Change a character in a text field
nwalker@[EMAIL PROTECTED]  2008-07-01 13:58:06 
Re: Change a character in a text field
Kevin.Grittner@[EMAIL PRO  2008-07-01 16:22:48 
Re: Change a character in a text field
kstone@[EMAIL PROTECTED]   2008-07-01 16:00:15 
Re: Change a character in a text field
nwalker@[EMAIL PROTECTED]  2008-07-02 10:35:32 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Oct 13 21:38:22 CDT 2008.