Udostępnij przez


UPPER (SSIS Expression)

Returns a character expression after converting lowercase characters to uppercase characters.

Składnia

UPPER(character_expression)

Arguments

  • character_expression
    Is a character expression to convert to uppercase characters.

Result Types

DT_WSTR

Uwagi

UPPER works only with the DT_WSTR data type. A character_expression argument that is a string literal or a data column with the DT_STR data type is implicitly cast to the DT_WSTR data type before UPPER performs its operation. Other data types must be explicitly cast to the DT_WSTR data type. For more information, see Integration Services Data Types and Cast (SSIS Expression).

UPPER returns a null result if the argument is null.

Expression Examples

This example converts a string literal to uppercase characters. The return result is "HELLO".

UPPER("hello")

This example converts the first character in the FirstName column to an uppercase character. If FirstName is anna, the return result is "A". For more information, see SUBSTRING (SSIS Expression).

UPPER(SUBSTRING(FirstName, 1, 1))

This example converts the value in the PostalCode variable to uppercase characters. If PostalCode is k4b1s2, the return result is "K4B1S2".

UPPER(@PostalCode)

Zobacz także

Odwołanie

LOWER (SSIS Expression)

Inne zasoby

Functions (SSIS Expression)