Prepare for your Next Interview
This is a discussion on display string without having underscore if we send string with underscore within the Oracle forums, part of the Databases category; By using Procedure,let display string without underscore, if we pass string like andhra_pradesh,it has to display andhrapradesh when procedure is called....
|
|||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
|||
|
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. |
| Sponsored Links |
|
|||
|
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. ![]()
__________________
Cheers, :) James:) |
| The Following User Says Thank You to jamesravid For This Useful Post: | ||
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Difference between String.Convert Vs String.ToString | jbanx | C# | 6 | 03-24-2008 01:02 PM |
| Extract String value | suji | Oracle | 1 | 05-23-2007 02:21 PM |
| match string using sql query... | psuresh1982 | SQL | 3 | 05-14-2007 08:21 AM |
| String and StringBuffer | ramesh_etta | Java | 4 | 03-31-2007 09:25 AM |
| String into Long | norman | C and C++ | 2 | 07-13-2006 10:51 PM |