The method of removing carriage return line space in Oracle is detailed _oracle

Source: Internet
Author: User
Remove Line Wrap
Update zhzl_address t set T.add_administration_num=replace (T.ADD_ADMINISTRATION_NUM,CHR (10), "");
Remove return
Update zhzl_address t set T.add_administration_num=replace (T.ADD_ADMINISTRATION_NUM,CHR (13), "");
Remove Space
Update zhzl_address t set T.add_administration_num=trim (T.add_administration_num);
-----------------------------
1. Carriage Return line feed
Chr (10) is a newline character,
Chr (13) is a carriage return,
Increase line breaks
select ' Update ' | | table_name | |
' Set valid_state = ' 0A '; Chr (a) | | ' Commit; '
From User_tables

Remove line breaks
Select Id,replace (Content,to_char (Chr (13)) | | To_char (CHR), ' _r_n ') from Fact_content order by content;

Remove line breaks, carriage returns, tab stops in the text in Oracle
ASCII definition of special symbol
Box Drawings Chr (9)
Line feed Chr (10)
return character Chr (13)
Second, nested use Repalce, note that only one symbol can be submitted at a time, such as first enter and then change lines
Select REPLACE (GG, Chr (), ') from dual
Pay attention to Chr (13) | | Chr (10) The use of such a combination of more cases, carriage return line in Notepad is more good-looking point, so to consider this kind of situation
Select Translate (STRING,CHR (13) | | Chr (a), ', ') from dual;

iii. Symbolic processing of large-character objects
For the symbol processing in the Clob field, first To_char and then the same processing
Sql> Select To_char (VCL), replace (To_char (VCL), Chr (a), ' [] ') from test_1;
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.