PL/SQL Development querying data copied to Excel

Source: Internet
Author: User
Tags chr

Chr (9) Tab key
Chr (10) line break
Chr (13) Enter
Chr (&CHR) (10) Carriage return line


Query data copied to Excel, if a field value of 2 or more than 2 cells, you may have the above symbol, can be InStr isolated, can be deleted by replace
Select N_id,s_name from T_a t where stat_time=20171206 and InStr (S_NAME,CHR (' ten ')) >0;
Select N_id,s_name from T_a t where stat_time=20171206 and InStr (S_NAME,CHR (') ') >0;
Select N_id,s_name from T_a t where stat_time=20171206 and InStr (S_NAME,CHR (' ')) >0;

Select N_id,s_name,replace (S_NAME,CHR (9)) A2 from T_a t where stat_time=20171206 and InStr (S_NAME,CHR (' ')) >0;

PL/SQL Development querying data copied to Excel

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.