Home > Database > Mysql Tutorial > Oracle里去掉字符串空格

Oracle里去掉字符串空格

WBOY
Release: 2016-06-07 17:45:41
Original
1344 people have browsed it

Oracle里去掉字符串空格


去除两侧空间

SQL> select trim(' 123 ') from dual;

TRI
---
123

SQL>

Oracle里去掉右侧字符串空格(RTRIM)
select rtrim(' 123 ') from dual;


SQL> select ltrim(' 123 ') from dual;

LTRI
----
123

SQL>

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