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

Consider you have the following three tables which have to be linked together.

849


What is a longblob?

889


What is a text delimiter?

870


How to present a past time in hours, minutes and seconds?

982


How do you create a table in mysql workbench?

863


What is mysql architecture?

955


how to get only updated, deleted , inserted records after certain interval time in mysql with out using triggers...

2172


What is the difference between BLOB AND TEXT?

1085


what is the difference between the nvl function, ifnull function, and the isnull function? : Mysql dba

977


How to display top 10 rows in mysql?

976


Can you tell the reasons for selecting lamp(linux, apache, mysql, php) instead of any other combination of software programs, servers, and operating system?

841


What is mysql url?

823


What are the different data types in mysql?

875


How do I create a new database in mysql?

856


What are mysql functions?

886