Golang Tutorials - Learn Go Programming with Easy Step-by-Step Guides

Explore comprehensive Golang tutorials for beginners and advanced programmers. Learn Go programming with easy-to-follow, step-by-step guides, examples, and practical tips to master Go language quickly.

Upper Function In Sql in SQL

Upper Function In Sql in SQL

The UPPER function in SQL is used to convert a string to uppercase letters.


Key Points:

  • Converts all characters in a string to their uppercase equivalents.

  • Useful for case-insensitive comparisons or formatting.

  • Works on string (character) data types.


Syntax

UPPER(string_expression)
  • string_expression: The string or column value you want to convert to uppercase.


Example

SELECT UPPER('hello world') AS UpperCaseString;-- Result: 'HELLO WORLD'
SELECT UPPER(FirstName) AS UpperFirstNameFROM Employees;

Notes

  • Supported by most SQL databases (MySQL, SQL Server, Oracle, PostgreSQL, etc.).

  • For lowercase conversion, use LOWER() function.


If you want, I can show you how to use UPPER in queries or combined with other functions!

Disclaimer for AI-Generated Content:
The content provided in these tutorials is generated using artificial intelligence and is intended for educational purposes only.
html
docker
php
kubernetes
golang
mysql
postgresql
mariaDB
sql