Results 1 to 2 of 2

Thread: display string without having underscore if we send string with underscore

  1. #1
    Junior Member
    Join Date
    May 2007
    Answers
    1

    display string without having underscore if we send string with underscore

    By using Procedure,let display string without underscore,
    if we pass string like andhra_pradesh,it has to display andhrapradesh
    when procedure is called.


  2. #2
    Expert Member
    Join Date
    Jun 2006
    Answers
    410

    Re: display string without having underscore if we send string with underscore

    The Replace built-in function in oracle serves for u,

    select replace('andhra_pradesh', '_',null) from dual;

    the above query removes '_' from the input string. You can also ignore the third parameter. that is the following query also returns the same value,

    select replace('andhra_pradesh', '_') from dual;

    Hope this helps you.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact