Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: replace or translate?
All things being equal, I prefer the translate because it's cleaner/less
code. But, it really depends on how your using it and what you mean by
"better".
Jon Knight
Senior Database Analyst
2525 Horizon Lake Drive, Suite 120
Memphis, TN 38133
JKnight_at_concordefs.com
901.371.8000 - Phone 800.238.7675 - Phone 901.380.8336 - Fax www.FirstData.com
-----Original Message-----
From: oracle-l-bounce_at_freelists.org [mailto:oracle-l-bounce_at_freelists.org]
On Behalf Of Sami Seerangan
Sent: Thursday, February 10, 2005 11:08 AM To: Oracle Discussion List Subject: replace or translate?
Which one is better?
replace(replace(a.url_addr_text,';','/'),'?','/')
translate(a.url_addr_text,';?','//')
--
Sami Seerangan
Oracle DBA
--
http://www.freelists.org/webpage/oracle-l
--
http://www.freelists.org/webpage/oracle-l
Received on Thu Feb 10 2005 - 12:15:08 CST