Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is prepared statement in mysql?

936


How do I insert multiple rows in a table?

873


How do I remove a user from mysql?

966


What is full text indexing in mysql?

932


What is pdo in mysql?

904


What is the default port for mysql and how it can change?

1039


How do I download mysql on my laptop?

860


How to include numeric values in sql statements?

985


Can we save images in mysql database?

873


What are the differences between char and varchar data types?

1069


What is mysql port?

1030


What is relational database in mysql?

905


What is ibdata1?

881


How do I create a mysql database?

899


Explain the storage engines in mysql?

986