Oracle carriage return, line feed

Source: Internet
Author: User

Return line break

Chr (10) is a newline character,
Chr (13) is the carriage return,

Add line break

Select '  '| | ||       ' Set valid_state = "' 0A "' ; ' || Chr| |  ' commit; '   from User_tables

Remove line breaks

Select ID,replace(Content,to_char (CHR)| | To_char (CHR),'_r_n'from theorder by content;

Remove line breaks, carriage returns, tab summaries from text in Oracle

I. Special symbol ASCII definition

Box Drawings Chr (9)
NewLine character Chr (10)
Carriage return Chr (13)

Second, nested use Repalce, note that only one symbol can be submitted at a time, such as first return and then line

Select REPLACE (GG, CHR, ') ' from dual

Pay attention to Chr (13) | | Chr (10) This kind of combination uses more cases,

The carriage return line in the Notepad is more attractive, so consider this situation.

Select Translate (STRING,CHR)| | Chr (ten),',' from dual;

Third, for the character of large objects of the symbolic processing

For symbolic processing in the Clob field, first To_char and then the same processing

Select to_char (VCL),replace(To_char (VCL), CHR,'[]'   from test_1;

Oracle carriage return, line feed

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.