Trimming unseen characters at the end of a string [message #238620] |
Fri, 18 May 2007 13:58  |
kham2k
Messages: 34 Registered: May 2007
|
Member |
|
|
Hi all I have a question
I got a string which got some extra characters added on but they are unseen, i can confirm by checking the length of the string.
I tried to us trim, rtrim but was not really able to solve it.
all the other characters before the unseen ones are digits 0-9
is there any way we can trim them out. also the string is of different length. i mean the string which i need is of different length.
Any suggestions?
|
|
|
|
|
|
|
|
|
Re: Trimming unseen characters at the end of a string [message #238659 is a reply to message #238640] |
Fri, 18 May 2007 19:07   |
kham2k
Messages: 34 Registered: May 2007
|
Member |
|
|
with all due respect sir
to use translate function you need to give a defination for unseen character. if you cant see that character how would you define it>
String Length
1112394301251103 24
if you see the visible number are 16 but the length im getting is 24.
so use translate i used following code
TRANSLATE(v.VIN_NBR,'0123456789 ' , '0123456789')
length(TRANSLATE(v.VIN_NBR,'0123456789 ' , '0123456789'))
and also
TRANSLATE(v.VIN_NBR,'0123456789' , '0123456789')
length(TRANSLATE(v.VIN_NBR,'0123456789' , '0123456789'))
but the out come is always the same with the same length.
so here translate can't be used
if there is a way you know that can let translate function to select all the 24 character.
even i tried
TRANSLATE(v.VIN_NBR, v.VIN_NBR , '0123456789')
Do you have anymore suggestions?
I do appreciate you help
|
|
|
|
Re: Trimming unseen characters at the end of a string [message #238675 is a reply to message #238660] |
Fri, 18 May 2007 23:39  |
 |
Michel Cadot
Messages: 68767 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
@kham2k
Quote: | >This is why you have to ALWAYS POST YOUR ORACLE VERSION (4 decimals).
You seem to be extremely clue resistant.
|
And here's the reason I shut up.
Too bad for you; if you don't answer our question you have no more help.
Regards
Michel
|
|
|