SQLite: upper Function
This SQLite tutorial explains how to use the SQLite upper function with syntax and examples.
Description
The SQLite upper function converts all characters in the specified string to uppercase. If there are characters in the string that are not letters, they are unaffected by this function.
Syntax
The syntax for the upper function in SQLite is:
upper( string )
Parameters or Arguments
- string
- The string to convert to uppercase.
Note
- The upper function will convert only ASCII characters to upper case.
Applies To
The upper 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 upper function examples and explore how to use the upper function in SQLite.
For example:
sqlite> SELECT upper('TechOnTheNet.com'); Result: 'TECHONTHENET.COM' sqlite> SELECT upper('Techonthenet.com is as easy as 123.'); Result: 'TECHONTHENET.COM IS AS EASY AS 123.' sqlite> SELECT upper(' Totn '); Result: ' TOTN '
Advertisements