8.3.18. UPPER()

Available in

DSQL, ESQL, PSQL

Syntax

  1. UPPER (str)
Table 140. UPPER Function Parameter
ParameterDescription

str

An expression of a string type

Result type

(VAR)CHAR or BLOB

Description

Returns the upper-case equivalent of the input string. The exact result depends on the character set. With ASCII or NONE for instance, only ASCII characters are uppercased; with OCTETS, the entire string is returned unchanged. Since Firebird 2.1 this function also fully supports text BLOBs of any length and character set.

Examples

  1. select upper(_iso8859_1 'Débâcle')
  2. from rdb$database
  3. -- returns 'DÉBÂCLE' (before Firebird 2.0: 'DéBâCLE')
  4. select upper(_iso8859_1 'Débâcle' collate fr_fr)
  5. from rdb$database
  6. -- returns 'DEBACLE', following French uppercasing rules

See also

LOWER()