Teradata data contains newline characters causing query results to export serial issues

Source: Internet
Author: User

Teradata data contains newline characters causing query results to export serial issues

During the daily operation of the system, part of the data is read into Excel import into the production system. This results in a mixed data quality. Some Excel cells have line breaks, data import, when queried again, it is possible to export the results of data serial problem.

First to restore the problem. (no solution has been found ...). T_T)

Write SQL and run the results such as:

Copy answer to UE view:

Export txt view using Sqla's own export function:

Note that the Create table with data is inconsistent with the insert select Run result;

Sql:

CREATE MULTISET VOLATILE TABLE vt_test as (SEL 1 as Line_num, ' first row 12345 second row 67890 third row abcde ' as MULTILINE) with DATA on COMMIT P Reserve Rows;insert into Vt_testsel2 as Line_num, ' Line1line2line3 ' as MULTILINE; SEL * from Vt_test;

  

Teradata data contains newline characters causing query results to export serial issues

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.