Home > Database > Oracle > How to convert characters to uppercase in Oracle

How to convert characters to uppercase in Oracle

WBOY
Release: 2022-05-13 10:59:52
Original
7889 people have browsed it

In Oracle, you can use the upper() function to convert characters to uppercase. The function of this function is to convert all the letters contained in the specified field in the specified table to uppercase. This function can be used with the select statement to perform the conversion. , the syntax is "select upper(specified field name) from specified table name".

How to convert characters to uppercase in Oracle

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

How to convert characters to uppercase in oracle

upper: Function to convert lowercase characters to uppercase

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

select upper(user_name) from user
Copy after login

Examples are as follows:

How to convert characters to uppercase in Oracle

Expand knowledge:

lower: Convert uppercase characters to lowercase The function

–converts 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:

How to convert characters to uppercase in Oracle

Recommended tutorial: "Oracle Video Tutorial"

The above is the detailed content of How to convert characters 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