UPPER()

All functions > STRING > UPPER()

Returns the string with all characters converted to uppercase.

Signatures

Returns: String with all characters converted to uppercase

UPPER(string: VARCHAR) → VARCHAR
sql
ParameterTypeRequiredDescription
stringVARCHARYesInput string to convert

Notes

  • Letters become uppercase; digits, punctuation, and most symbols stay unchanged
  • UPPER('') is ''; if the input is NULL the result is NULL (use NULL(VARCHAR); bare NULL fails inference)

Examples

FeatureQL
SELECT
    -- All lowercase to uppercase
    f1 := UPPER('hello world'),
    -- Mixed case to uppercase
    f2 := UPPER('Mixed Case String'),
    -- Letters and numbers
    f3 := UPPER('abc123xyz'),
    -- Unicode characters
    f4 := UPPER('café'),
    -- Numbers and symbols unchanged
    f5 := UPPER('123!@#'),
    -- NULL yields NULL
    f6 := UPPER(NULL(VARCHAR))
;
Result
f1 VARCHARf2 VARCHARf3 VARCHARf4 VARCHARf5 VARCHARf6 VARCHAR
HELLO WORLDMIXED CASE STRINGABC123XYZCAFÉ123!@#NULL

Last update at: 2026/06/20 10:08:10