How to load data from a text file into a table?
Answer Posted / tushar
To load the text file pet.txt into the pet table, use this statement:
mysql> LOAD DATA LOCAL INFILE '/path/pet.txt' INTO TABLE pet;
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
What are aggregate functions in mysql?
What is meant by decimal (5,2)?
How internally data stores in MyISAM and INNODB table types?
Is mysql same as mariadb?
How do I clear the screen in mysql?
How do I setup mysql?
What language is mysql written in?
What is the insert?
What is a crosstab query?
What is the difference between truncate and delete?
What is the difference between is null & is not null?
How to insert dynamic values in mysql using php?
How do I change directories in mysql?
Is mysql a database?
How are mysql timestamps seen to a user?