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 the difference between unix timestamps and mysql timestamps?
How to load data files into tables with 'mysqlimport'?
What are the mysql database files stored in system ?
Is mysql a dbms?
How to convert character strings to numeric values?
How do I create a new database in mysql?
What is pragma exception?
Is mysql a distributed database?
How to create a trigger in mysql?
What ascii 31?
How to use in conditions?
how to Return total number of rows.
What are the difference between now and current_date in mysql?
how to dump all databases for backup. Backup file is sql commands to recreate all db's.
How to make a column bigger and delete unique from table.