Questions about SQL Export comma delimiter for CSV file

Source: Internet
Author: User
About the SQL export CSV file comma delimiter problem
CSV file is generally "," as a delimiter, but now there is a lot of content in the database contains commas, how should this situation be handled?

------Solution--------------------
The standard CSV is like this
"ABCD", "a" "", 123
The values for the three columns are ABCD, a ", 123, respectively.

Double quotation marks are usually omitted when there is no ambiguity
Aaa,bb,cccc

But if there is a Chinese
AAA, Kanji, 123
So php5.3 can only read 1, 3 columns of content, the 2nd column is empty

You just have to notice the fact that it doesn't matter what tool you use.
Since the tool has become a tool, it naturally has its merits.
  • 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.