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 / vijay singh
LOAD DATA INFILE 'data.txt' INTO TABLE table2
FIELDS TERMINATED BY ',';
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What's the latest version of mysql?
What are stored procedures and functions?
What is user in mysql?
What is a tinyint?
When to use order by in delete statement?
Is mysql a odbc?
What language is mysql written in?
What is mysql and mysqli?
Write a query to count the number of rows of a table in mysql.
How do I restore a mysql database?
How can we optimize stored procedure?
explain GROUPBY & HAVING clause with examples.
Is mariadb better than mysql?
Is there a free version of mysql?
What is data type for image in mysql?