Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Equivalent to Oracle NLS_INITCAP ?

Status
Not open for further replies.

PierreNicolas

IS-IT--Management
Nov 20, 2002
2
CH
I'm looking for an equivalent method of the Oracle NLS_INITCAP, that returns a charaters in lower case but the first letter of all words that are in capital.

Thanks,
Pierre
 
Hello Pierre,

I just went through the standard functions without finding a equivalent to the ORACLE function you mentioned.
You could create your own using UCASE, LCASE, LENGTH and SUBSTR functions such as:

UCASE(SUBSTR(<var>,1,1))||LCASE(SUBSTR(<var>,2,(LENGTH(<var>)-1)))

or something along the line , for variable length strings.
Must be a simpler solution one should think..... T. Blom
Information analyst
tbl@shimano-eu.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top