PostgreSQL: upper Function
This PostgreSQL tutorial explains how to use the PostgreSQL upper function with syntax and examples.
Description
The PostgreSQL upper function converts all characters in the specified string to uppercase.
Syntax
The syntax for the upper function in PostgreSQL is:
upper( string )
Parameters or Arguments
- string
- The string to convert to uppercase.
Note
- If there are characters in the string that are not letters, they are unaffected by the upper function.
- See also the lower function.
Applies To
The upper function can be used in the following versions of PostgreSQL:
- PostgreSQL 9.4, PostgreSQL 9.3, PostgreSQL 9.2, PostgreSQL 9.1, PostgreSQL 9.0, PostgreSQL 8.4
Example
Let's look at some PostgreSQL upper function examples and explore how to use the upper function in PostgreSQL.
For example:
postgres=# SELECT upper('Tech on the Net'); upper ----------------- TECH ON THE NET (1 row) postgres=# SELECT upper('TechOnTheNet.com is #1'); upper ------------------------ TECHONTHENET.COM IS #1 (1 row)
Advertisements