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
What are the mysql database files stored in system ?
How do you create a new database in mysql?
How to delete an existing column in a table?
What does mysql flush tables do?
Can't connect mysql server on localhost?
What is mysql command line?
How to return query output in html format?
What does mysql flush hosts do?
How does select query work?
How do I rename a mysql database?
How do I install mysql on windows 10?
What is a trigger in mysql?
How do I disable mysql?
How can you change the password of a mysql user?
How do I kill a mysql connection?