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?
Answers were Sorted based on User's Feedback
Answer / vijay singh
LOAD DATA INFILE 'data.txt' INTO TABLE table2
FIELDS TERMINATED BY ',';
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / vipul dalwala
LOAD DATA INFILE 'data.txt' INTO TABLE table_name
(city,code);
| Is This Answer Correct ? | 0 Yes | 0 No |
table a has records 1,1,1,1 table b has records 1,1,1,1,1,1 what would be out if perform join for all cases
How do I edit a stored procedure in mysql?
What is full text indexing in mysql?
How to delete the repeated records from a table?
What is mysql used for?
How do I connect to mysql database?
How many ways we can we find the current date using MySQL?
What is the difference between mysql_fetch_array and mysql_fetch_object?
What are the other commands to know the structure of table using MySQL commands except explain command?
How does mysql store dates?
How can you filter the duplicate data while retrieving records from the table?
Differentiate CHAR_LENGTH and LENGTH?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)