UCASE Function [String]

Converts all characters in a string to uppercase.

Syntax

UCASEstring-expression )

Parameters

Parameter

Description

string-expression

The string to be converted to uppercase.

Returns

VARCHAR

NVARCHAR

LONG VARCHAR

LONG NVARCHAR

Note: The result data type is a LONG VARCHAR. If you use UCASE in a SELECT INTO statement, you must have an Unstructured Data Analytics Option license, or use CAST and set UCASE to the correct data type and size.

Standards and Compatibility

  • SQL—Vendor extension to ISO/ANSI SQL grammar.

  • Sybase—UCASE is not supported by Adaptive Server, but UPPER provides the same feature in a compatible manner

Example

The following statement returns the value “CHOCOLATE”:

SELECT UCASE( 'ChocoLate' ) FROM iq_dummy
Related reference
LCASE Function [String]
LEFT Function [String]
LOWER Function [String]
REPLACE Function [String]
REVERSE Function [String]
RIGHT Function [String]
UPPER Function [String]