Click here to Skip to main content
15,885,435 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
sir,
Initcap is a oracle procedure for get first letter of a character in upper case.sir i want to convert this initcap function in oracle to sql.if any one knows the answer please help me..
Posted
Updated 26-Sep-13 21:11pm
v2

1 solution

hello,

you have to use these sql keywords to get the answer .
Upper
// To convert  the letter is upper case<pre></pre>

Substring
//to cut some portion of a string<pre></pre>

lower
// To convert  the letter is lower case


example

SQL
declare @name varchar(200)
set @name='AniMesh'
select Upper(Substring(@name,1,1))+lower(SUBSTRING(@name,2,len(@name)))


here the first letter will be Capital and rest will be small .

and output will be
'Animesh'


Thanks
Animesh
 
Share this answer
 
Comments
Maciej Los 27-Sep-13 4:28am    
+5

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900