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

Last update at: 2026/05/26 17:22:09