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

How to load data from a text file into a table?

Answer Posted / palanisamy

we have the mysql query which will load csv file into db
syntax:

load data infile 'pathtothefile' into table name
line termineted by '\n',
field teminated by ',';

Is This Answer Correct ?    9 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many ways we can retrieve the date in result set of mysql using php?

1045


What is mysql primary key?

911


Is mysql distributed?

868


What is difference between pdo and mysqli?

913


What does mysql flush privileges do?

879


What are the differences between a primary key and foreign key?

1032


Is mongodb faster than mysql?

876


What is the maximum no of columns a table can have?

864


How to control the max size of a heap table?

929


How many sql dml commands are supported by 'mysql'?

904


What is use command in mysql?

969


What is difference between microsoft sql and mysql?

924


How do I tune a mysql query?

825


How do I automate a backup in mysql?

918


Table - Products has number of products as below Productid ProductName 1 iPhone 2 iPad 3 BlackBerry Table - SalesPersonProduct has the below records Salespersonid productid S1 1 S1 2 S1 3 S2 1 S3 2 Write a SQL query that returns the total number of sold products

2773