forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: Su, Xiaomeng <suxiaomeng1@huawei.com> Co-committed-by: Su, Xiaomeng <suxiaomeng1@huawei.com>
5.2 KiB
5.2 KiB
upper/ucase
This function is used to convert all characters of a string to the upper case.
Syntax
upper(string A)
or
ucase(string A)
Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
A |
Yes |
STRING |
Text string to be converted |
Return Values
The return value is of the STRING type.
Example Code
Converts lowercase characters in a string to the upper case. An example command is as follows:
The value ABC is returned.
select upper('abc');
The value of the input parameter is NULL. An example command is as follows:
The value NULL is returned.
select upper(null);
Parent topic: String Functions