first capital in sql code example
Example 1: capitalize 1st letter in sql server
mysql> Select CONCAT(UPPER(SUBSTRING(name,1,1)),LOWER(SUBSTRING(name,2))) AS Name from emp_tbl;
+----------------+
| Name |
+----------------+
| Rahul singh |
| Gaurav kumar |
| Yashpal sharma |
| Krishan kumar |
| Kuldeep rai |
| Munish nayak |
+----------------+
6 rows in set (0.00 sec)
Example 2: how to get capital letter first in sql
INITCAP retrieves capital letter first