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
Can a table have multiple primary keys?
What is the purpose of using a heap table?
What is the default port for MySQL Server?
How to show all records starting with the letters 'sonia' and the phone number '9876543210'
what is the difference between between and in operators in mysql?
Transactions are used to treat sets of SQL statements atomically. State Whether True or False?
Can mysql scale horizontally?
Is mysql free for commercial use?
What is mysql community server?
How to analyze tables with 'mysqlcheck'?
Why do you think it is advised to not to use guid and character columns as clustered index arrays?
Can I use mariadb instead of mysql?
How can you retrieve a particular number of records from a table?
What is pragma autonomous_transaction?
What is key in mysql?