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 is difference between group by and order by clause?
Which is better mysql or mssql?
How do you determine the location of mysql data directory?
What is the use of pdo?
How to check server status with 'mysqladmin'?
What are the features of mysql?
Is mysql server free?
What are the functions of mysql?
how you will Create a database on the mysql server with unix shell.
What is a scalar function?
What is save point in mysql?
Why do we use views instead of tables?
Explain the difference between primary key and candidate key in mysql?
What is the datatype for password in mysql?
What are the advantages of mysql?