Postgresql Upper Function

PostgreSQL: upper Function

In this PostgreSQL post 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('AODBA.com is #1');
         upper
------------------------

 AODBA.COM IS #1
(1 row)