NLS_UPPER

2023-12-25 08:49:42  Updated

Purpose

NLS_UPPER() converts all letters in a string to uppercase.

Syntax

NLS_UPPER(char [, 'nlsparam' ])

Parameters

Parameter Description
char The string to be converted. It can be of the CHAR, VARCHAR2, NCHAR, NVARCHAR2, or CLOB data type.
nlsparam The sort order of the returned string. This parameter is optional.
Note
: The current version of OceanBase Database does not support this parameter.

Return type

The return type is the same as the data type of char.

Examples

The following example converts all letters in OceanBase to uppercase.

obclient> SELECT NLS_UPPER('OceanBase') "UPPER" FROM DUAL;
+-----------+
| UPPER     |
+-----------+
| OCEANBASE |
+-----------+
1 row in set

Contact Us