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 General > Re: regexp_repl...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 3 Topic 15489 of 17437
Post > Topic >>

Re: regexp_replace in two times?

by tgl@[EMAIL PROTECTED] (Tom Lane) May 8, 2008 at 10:48 AM

Luca Ferrari <fluca1978@[EMAIL PROTECTED]
> writes:
> I used the regexp_replace function to make a substitution over a table,
but I 
> got a strange behaviour (please consider I'm not an expert of regex).
The 
> idea is to remove the final part of a code, that could be TIF, ISTTIF,
tif, 
> isttif, and at the same time consider only the records depending on the
join 
> with another table. Now, the strange thing is that the first query
updated 
> the most of records, but then 4 records are still there, and in fact 
> executing again the same update provides me another substitution. What
could 
> be the reason?

Maybe the original strings had more than one instance of 'TIF'?

			regards, tom lane

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




 3 Posts in Topic:
regexp_replace in two times?
fluca1978@[EMAIL PROTECTE  2008-05-08 14:46:46 
Re: regexp_replace in two times?
tgl@[EMAIL PROTECTED] (T  2008-05-08 10:48:22 
Re: regexp_replace in two times?
fluca1978@[EMAIL PROTECTE  2008-05-09 09:28:21 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Sat Nov 22 12:06:12 CST 2008.