Clear, practical technology insights BSOD Code Lookup · Windows Error Code Lookup · Wi-Fi Troubleshooting · PC Troubleshooting Checklist

LOWER Function in SQL Server: Tips and Examples

Understand LOWER Function in SQL Server with clear explanations, practical examples, and useful tips. This updated guide covers the essential concepts and...

Table of Contents

LOWER Function in SQL Server is easier to understand when the core ideas are paired with practical examples. The sections below explain the topic clearly, highlight useful steps, and point out details that can prevent common errors.

The article will explore and show you how to use the LOWER function in SQL Server to convert letters in a specified string to lowercase.

Describe

LOWER function in SQL Server converts all letters in the string specified to lowercase. If there are characters in a string other than letters, it is not affected by this function.

Syntax

To use the LOWER function in SQL Server, we use the following syntax:

 LOWER(chuoi) 

Parameters :

  • string : the string you want to convert, can be a string of characters with text, variables, string expressions or table columns.

Note :

  • See UPPER function for reverse conversion.
  • LOWER function can be used in later versions of SQL Server: SQL Server 2017, SQL Server 2016, SQL Server 2014, SQL Server 2012, SQL Server 2008 R2, SQL Server 2008, and SQL Server 2005.

As an example,

Take a look and explore some examples of LOWER functions in SQL Server.

 SELECT LOWER('TIPSMAKE.COM '); 
 Result: 'tipsmake.com' 
 
 SELECT LOWER('Tipsmake.com'); 
 Result: 'tipsmake.com' 
 
 SELECT LOWER(' TipsMake.com '); 
 Result: 'tipsmake.com' 
 
 SELECT LOWER('Tipsmake'); 
 Result: 'tips make' 

Next lesson: LTRIM function in SQL Server

FAQ

What should you know about describe?

LOWER function in SQL Server converts all letters in the string specified to lowercase. If there are characters in a string other than letters, it is not affected by this function.

What should you know about syntax?

To use the LOWER function in SQL Server, we use the following syntax:

What should you know about as an example,?

Take a look and explore some examples of LOWER functions in SQL Server.

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.