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 / 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


Please Help Members By Posting Answers For Below Questions

How can we run batch mode in mysql?

1125


How many columns can a table have?

976


How do I copy a table in mysql?

987


How to declare variable in mysql trigger?

1062


How to delete a table.

971


How do I select a database in mysql workbench?

1081


How to show all records starting with the letters 'sonia' and the phone number '9876543210'

981


What is use command in mysql?

1093


How many threads can mysql handle?

1035


How do I quit mysql?

985


What is the difference between MyISAM Static and MyISAM Dynamic?

1085


How to delete a database from mysql server.

1118


What is the difference between mysql and oracle?

1007


What is the use of count function in mysql?

1073


What is InnoDB?

1156