LCASE can be used in MySQL query to get the output in all lower case letters.
For example below query will display the username in lowercase.
SELECT lcase(username) FROM `users`
Similarly UCASE can be used for getting the output in all upper case letters.
Alternatively, we can use php functions strtolower() and strtoupper() for achieving the samething.
More Articles...
Tuesday, April 28, 2009
Converting Letter Case in php/MySql
Related Posts
- Released a new ebook "Mastering SQL: A Comprehensive Guide to Database Mastery"
- Comparison of TRUNCATE, DELETE, and DROP in SQL
- Basic SQL Questions and Answers
- Work around for solving round off issues when converting existing MySql Column from FLOAT to DOUBLE
- Using both "sum" and "limit" in a mysql query
Search This Blog
AI Course | Bundle Offer | Unlocking AI | Dream Big | Listen to Dream Big
Today's Deals | Timesheet | Products | SQL ebook | Earn 50% commission
About | Privacy | Follow | TOS | WhatsApp | Contact
I may earn a commission from Amazon affiliate links
Today's Deals | Timesheet | Products | SQL ebook | Earn 50% commission
About | Privacy | Follow | TOS | WhatsApp | Contact
I may earn a commission from Amazon affiliate links
No comments:
Post a Comment