Prepare for your Next Interview
This is a discussion on Identify blank spaces in a string within the Oracle forums, part of the Databases category; I have to take an input from user at run time of a procedure. And i have to find out the blank space in given string and have to trim ...
|
|||
|
Identify blank spaces in a string
I have to take an input from user at run time of a procedure. And i have to find out the blank space in given string and have to trim all such blank spaces. How exactly can we identify blank space.
How can i do that. As we know using trim we can trim spaces at front or rear end of a string, but how we can trim spaces from mid of the string? |
| Sponsored Links |
|
|||
|
Re: Identify blank spaces in a string
Quote:
SQL> select translate(' Hi what is ur name' ,' ','') from dual; T - OUTPUT is NULL. I think ,while using translate funcion Oracle interprets the empty string as null, and if this function has a null argument, then it returns null. Is there any other way to remove blank spaces using translate function? Can anyone post an example for that? |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Identify New Records | rajpandu | Data Warehousing | 5 | 03-30-2008 11:47 PM |
| Difference between String.Convert Vs String.ToString | jbanx | C# | 6 | 03-24-2008 01:02 PM |
| What will be the answer whether spaces or compiler error | kanchhana | MainFrame | 1 | 06-26-2007 01:25 PM |
| display string without having underscore if we send string with underscore | ausprem2000 | Oracle | 1 | 05-28-2007 07:46 AM |
| Identify the Ball | christia | Brainteasers | 1 | 08-17-2006 11:11 AM |