Home > Database > Oracle > What is the function to convert to uppercase in Oracle?

What is the function to convert to uppercase in Oracle?

WBOY
Release: 2022-05-24 17:18:02
Original
6949 people have browsed it

The function to convert to uppercase in Oracle is upper; this function is used to convert all letters in the specified string to uppercase. The returned value is the same as the data type of char. The database is defined according to the basic character set. Binary mapping to set the case of characters, the syntax is "upper(string)".

What is the function to convert to uppercase in Oracle?

The operating environment of this tutorial: Windows 10 system, Oracle 11g version, Dell G3 computer.

What is the function that converts to uppercase in oracle?

The function that converts to uppercase in oracle is the upper function

The UPPER function is used to convert the specified string into All letters of are converted to uppercase. If the characters in the string are not letters, they are not affected by this function.

The char to be converted can be any data type, such as CHAR, VARCHAR2, NCHAR, NVARCHAR2, CLOB or NCLOB. The value returned by the UPPER function is the same data type as char. The database sets character case according to the binary mapping defined for the underlying character set.

Usage:

UPPER( string )
Copy after login

Parameters used:

string-used to specify the string that needs to be converted.

Return value:

The UPPER function in PLSQL returns a string value.

The example is as follows:

Pass a string as a parameter, with the first character in uppercase and the remaining characters in lowercase.

What is the function to convert to uppercase in Oracle?

Output results:

GEEKSFORGEEKS

Extended knowledge:

lower: uppercase characters Convert to lowercase function

– Convert all letters containing letters in the user_name field information in the user table to lowercase

select lower(user_name) from user
Copy after login

The example is as follows:

What is the function to convert to uppercase in Oracle?

Recommended tutorial: "Oracle Video Tutorial"

The above is the detailed content of What is the function to convert to uppercase in Oracle?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template