I need INITCAP to ignore apostrophes. [message #2681] |
Tue, 06 August 2002 08:06  |
Linz
Messages: 1 Registered: August 2002
|
Junior Member |
|
|
I'm using INITCAP to propercase a column of results. However when a result has an apostrophe, it capitalizes the next letter. I don't want it to do that.
example:
What I get now is: Women'S Tops
I want: Women's Tops
HELP??
|
|
|
|
|
Re: I need INITCAP to ignore apostrophes. [message #2696 is a reply to message #2681] |
Tue, 06 August 2002 22:47  |
Deepa
Messages: 269 Registered: November 2000
|
Senior Member |
|
|
hi,
to solve u'r problem use replace function to replace the "'" single quote character with some value like '0' then use initcap function to convert the first character to uppercase and again use replace fnction to replace '0' with "'" single quote character.
following query solve u'r problem:
select replace(Initcap(replace('women'||''''||'stop','''',0)),'0','''') from dual;
|
|
|