Sqlite Lower Function

SQLite: lower Function

This SQLite post explains how to use the SQLite lower function with syntax and examples.

Description

The SQLite lower function converts all characters in the specified string to lowercase. If there are characters in the string that are not letters, they are unaffected by this function.

Syntax

The syntax for the lower function in SQLite is:

lower( string )

Parameters or Arguments

string

The string to convert to lowercase.

Note

  • The lower function will convert only ASCII characters to lower case.

Applies To

The lower function can be used in the following versions of SQLite:

  • SQLite 3.8.6, SQLite 3.8.x, SQLite 3.7.x, SQLite 3.6.x

Example

Let's look at some SQLite lower function examples and explore how to use the lower function in SQLite.

For example:

sqlite> SELECT lower('AODBA.com');
Output:  'AODBA.com'

sqlite> SELECT lower('AODBA.COM is as easy as 123.');
Output:  'AODBA.com is as easy as 123.'

sqlite> SELECT lower('  Dbd  ');
Output:  '  dbd  '