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 does php communicate with mysql?
What is difference between pdo and mysqli?
How do I know if mysql is installed on windows?
How to show all tables with 'mysql'?
What does mysql_fetch_assoc do?
Why do we write stored procedures?
What is a longblob?
What are Heap tables?
Consider a scenario where you have to send an email to a client from the sql database. How do you think you can achieve this task?
What is mysql gpl?
How to get current MySQL version?
Can you tell the difference between mysql_connect and mysql_pconnect? : Mysql dba
What is unique key in mysql?
Which is faster innodb or myisam?
How do I connect to mysql database?