
- Forum
- Databases
- Oracle display string without having underscore if we send string with underscore
-
Junior Member
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.
-
Expert Member
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
-
Forum Rules