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

Can I install mysql on mac?

744


What is a mysql view?

663


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

690


What's the latest version of mysql?

748


What do you need to connect php to mysql?

732


What are the advantages and disadvantages of using mysql?

736


How can I connect mysql database?

682


What is mysql used for?

722


How to see table's field formats or description of table .

672


What is mysql default database?

663


How to rename an existing column in a table?

759


How to create a table?

725


What is the difference between the primary and unique key in mysql?

704


What is mysql and how it works?

666


How to load a csv file into a table

774