GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Interview Questions  >  Oracle  >  SQL

 Print  |  
Question:  Replace and Translate

Answer: How and in what way REPLACE is different from TRANSLATE?


June 06, 2008 00:16:09 #1
 ashish88   Member Since: June 2008    Total Comments: 6 

RE: Replace and Translate
 

Replace function repalce the value where ever they was found  string .
Select  Replace ('*THE*','*','TROUBLE') from dual;
Translate  Function  replace the value whereever they  have found one word of the string.
Select Translate('AtheN','AN','the') from dual;

     

 

Back To Question