MySQL Database export csv garbled problem

Source: Internet
Author: User

First, the export of Chinese characters is garbled

1. Right click on the selected CSV file and select "Edit" in the popup menu, the system will use the text side

(notepad) to open the CSV file;

2. After opening the CSV file, make a "Save as" action, "encode" at the bottom of the popup screen, modify
Encoding method: from UTF-8 to ANSI. Save

3. After you open the Excel, the Chinese characters are displayed normally.

Second, the export content in a single row in a cell

Select database table--Right-click Properties--Backup/Export--export table data as---select CVS---Select the following "Change"--field--Variable length--field is terminated--enter comma , (This is the focus, otherwise the contents of the exported CSV file are all in one column, not the sub-fields) the following two options boxes are canceled.

Third, the number will become scientific counting method

Select Concat (' \ t ', a.name) from table

MySQL Database export csv garbled problem

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.