In this article I will explain how to write a query to convert or change lowercase to uppercase or uppercase to lowercase characters in SQL server.
SELECT UPPER(ColumnName) FROM TableName
|
SELECT UPPER(UserName) as UserName, UPPER(FirstName) as FirstName, UPPER(LastName) as LastName FROM
UserDetails
|
SELECT LOWER(ColumnName) FROM TableName
|
SELECT LOWER(UserName) as UserName, LOWER(FirstName) as FirstName, LOWER(LastName) as LastName FROM
UserDetails
|
|
If you enjoyed this post, please support the blog below. It's FREE! Get the latest Asp.net, C#.net, VB.NET, jQuery, Plugins & Code Snippets for FREE by subscribing to our Facebook, Twitter, RSS feed, or by email. |
|||
Subscribe by RSS
Subscribe by Email
|
|||
|
|
|



Subscribe by RSS
Subscribe by Email
5 comments :
Hi
Suresh
The Query is good,where we use this type of query in real time applications,will you please explain with a example.
Thanks&Regards
Hareesh.A
nhjh
how to view the word file in asp.net using sql
Dear sir Suresh if we run this query it convert the coumn lower as well as upper.but when i use the SELECT*FROM "Tablename".the table have same reults as before...........................
so what it' use
r.k saini
rajneesh saini
when u write the query select upper(columnname) from table name that means it will show you only in uppercase but in the table the value could not be changed...