Home  >  Article  >  Database  >  What are the Oracle functions for removing spaces?

What are the Oracle functions for removing spaces?

青灯夜游
青灯夜游Original
2022-03-17 15:18:1015164browse

Oracle's functions for removing spaces include: 1. LTRIM() function, which can delete the space characters on the left side of the parameter string; 2. RTRIM() function, which can delete the space characters on the right side of the parameter string; 3. , TRIM() function, which can delete space characters on the left and right sides of the parameter string at the same time.

What are the Oracle functions for removing spaces?

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

oracle function to remove spaces

##RTRIM(X[,TRIM_STR])Put the right side of X Truncate the trim_str string, and truncate spaces by default TRIM([TRIM_STR FROM]X)
##Function

Instructions

LTRIM(X[,TRIM_STR])

Truncate the left side of X trim_str String, spaces are truncated by default

Put both sides of X Trim the trim_str string, and truncate spaces by default
LTRIM() function

LTRIM() function can only delete parameters The space character on the left side of the string

What are the Oracle functions for removing spaces?

RTRIM() function

RTRIM() function can only delete the right side of the parameter string The space characters

What are the Oracle functions for removing spaces?

TRIM() function

TRIM() function can simultaneously delete the space characters on the left and right sides of the parameter string.

What are the Oracle functions for removing spaces? Recommended tutorial: "

Oracle Tutorial

"

The above is the detailed content of What are the Oracle functions for removing spaces?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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