if we want to load data from a text file into a mysql table,
but the columns in table are 1st: code(int) and 2nd:
city(varchar), but in text file the format is 1st cityname
and then code separeted by delimeters. how to load?
Answer Posted / vipul dalwala
LOAD DATA INFILE 'data.txt' INTO TABLE table_name
(city,code);
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How to get data from mysql in php?
What is mysql root?
How we get sum of column.
How can you increase the performance of mysql select query?
Explain the difference between mysql and mysql interfaces in php?
What is meant by mysqli?
What is row level locking in access?
What is the difference between sql and mysql and oracle?
Is mysql a backend?
How do you shutdown a mysql database?
Where is mysql data stored?
Is mysql a odbc?
What is root password?
Is sql similar to mysql?
Can we write procedure in mysql?