Welcome to plsql4all.blogspot.com SQL, MYSQL, ORACLE, TERADATA, MONGODB, MARIADB, GREENPLUM, DB2, POSTGRESQL.

Friday, 16 February 2024

UPPER Function in MYSQL

In MySQL, the UPPER() function is used to convert a string to uppercase. Here's how you can use it with an example:

Suppose you have a table users with a column name, and you want to retrieve the names of all users in uppercase:

SELECT UPPER(name) AS uppercase_name

FROM users;

This query will retrieve the name column values from the users table and convert them to uppercase using the UPPER() function. The result set will contain the uppercase names, and they will be aliased as uppercase_name.

No comments:

Post a Comment

Please provide your feedback in the comments section above. Please don't forget to follow.