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 is prepared statement in mysql?
How do I insert multiple rows in a table?
How do I remove a user from mysql?
What is full text indexing in mysql?
What is pdo in mysql?
What is the default port for mysql and how it can change?
How do I download mysql on my laptop?
How to include numeric values in sql statements?
Can we save images in mysql database?
What are the differences between char and varchar data types?
What is mysql port?
What is relational database in mysql?
What is ibdata1?
How do I create a mysql database?
Explain the storage engines in mysql?