How can I import txt file into MySQL
How to import TXT file into MySQL, this TXT file is from someone else's website, the format is fixed, is a space for the separator, the following is a TXT file part of the content:
------Solution--------------------
Do you use PHP?
The first line above is the database field below is the data so according to this format to read the number of groups and then assembled into SQL statement execution ...
------Solution--------------------
Create a table first. Then execute at the command line:
Load data local infile "C:/data.txt"
into table TT;
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.