Home » SQL & PL/SQL » SQL & PL/SQL » remove whitespace
remove whitespace [message #513770] Wed, 29 June 2011 06:08 Go to next message
soru05
Messages: 21
Registered: April 2011
Location: india
Junior Member
Dear All,

I want to remove whitespace from oracle database, and i don't want to use trim() or replace(). can i use jdbc driver? if yes, then how?

Thanks in advance.

Regards
Saurabh
Re: remove whitespace [message #513771 is a reply to message #513770] Wed, 29 June 2011 06:13 Go to previous messageGo to next message
S.Rajaram
Messages: 1027
Registered: October 2006
Location: United Kingdom
Senior Member
Quote:

I want to remove whitespace from oracle database, and i don't want to use trim() or replace(). can i use jdbc driver? if yes, then how?

What does remove whitespace has to do with jdbc driver? Why you don't want to use trim or replace ?

Regards

Raj
Re: remove whitespace [message #513776 is a reply to message #513771] Wed, 29 June 2011 06:41 Go to previous messageGo to next message
Michel Cadot
Messages: 68757
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator
And what does mean "I want to remove whitespace"?

Regards
Michel
Re: remove whitespace [message #513779 is a reply to message #513776] Wed, 29 June 2011 06:47 Go to previous messageGo to next message
soru05
Messages: 21
Registered: April 2011
Location: india
Junior Member
In database, if any string is "saurabh "
and i want to correct it like this "saurabh"
and there is many whitespaces in database.
Re: remove whitespace [message #513781 is a reply to message #513779] Wed, 29 June 2011 06:53 Go to previous messageGo to next message
Michel Cadot
Messages: 68757
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator
A database is a set of schemas
A schema is a set of tables
A table is a set of columns
What paremeters, among those ones, have you?
Or do you want to remove ALL spaces in ALL columns of ALL tables in ALL schemas?

Regards
Michel
Re: remove whitespace [message #513785 is a reply to message #513781] Wed, 29 June 2011 06:58 Go to previous messageGo to next message
soru05
Messages: 21
Registered: April 2011
Location: india
Junior Member
yes, i want to remove all spaces from all columns of all tables.
Re: remove whitespace [message #513788 is a reply to message #513785] Wed, 29 June 2011 07:06 Go to previous messageGo to next message
cookiemonster
Messages: 13966
Registered: September 2008
Location: Rainy Manchester
Senior Member
Even spaces in the middle of data? Or just trailing spaces?
Re: remove whitespace [message #513789 is a reply to message #513788] Wed, 29 June 2011 07:08 Go to previous messageGo to next message
soru05
Messages: 21
Registered: April 2011
Location: india
Junior Member
only trailing spaces.
Re: remove whitespace [message #513794 is a reply to message #513789] Wed, 29 June 2011 07:36 Go to previous messageGo to next message
Michel Cadot
Messages: 68757
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator
Even in Oracle dictionary which will screw your database?

Regards
Michel
Re: remove whitespace [message #513795 is a reply to message #513794] Wed, 29 June 2011 07:49 Go to previous message
Michel Cadot
Messages: 68757
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator
You can have a look at find_string T. Kyte's procedure and do the same kind of thing.

Regards
Michel
Previous Topic: ORA-01830: date format picture ends before converting entire input string
Next Topic: Create table privilege
Goto Forum:
  


Current Time: Sun Apr 27 18:38:13 CDT 2025