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 can I compare two mysql databases?

656


How many rows can mysql hold?

668


What is a result set object?

729


What is a delimiter in mysql?

691


Tell us something about heap tables?

728


What is pdo :: fetch_assoc?

683


How large can a mysql table be?

678


What is row level locking in access?

660


How many concurrent queries can mysql handle?

659


What is identity in mysql?

730


How can I see connections in mysql?

687


What is the function of mysqldump?

777


How do I fix a crashed mysql database?

698


How do I view tables in mysql workbench?

666


How can we convert between Unix & MySQL timestamps?

656