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.

Lower Function In Sql in SQL

Lower Function In Sql in SQL

? LOWER Function in SQL

The LOWER function is used to convert all characters in a string to lowercase.


? Syntax:

LOWER(string)
  • string: The text or column you want to convert to lowercase.


? Example:

SELECT LOWER('HeLLo WoRLD') AS lower_case;

Result:

lower_case
hello world

? Use Case:

Helpful in case-insensitive comparisons:

SELECT * FROM usersWHERE LOWER(username) = 'john_doe';

This ensures that JOHN_DOE, John_Doe, or john_doe will all match.


? Notes:

  • Supported in most databases:

    • ? MySQL

    • ? PostgreSQL

    • ? SQL Server

    • ? Oracle

  • Equivalent function:

    • SQL Server also supports LOWER()

    • Oracle: LOWER()


Let me know if you want the opposite (UPPER) or more string 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