Click here to Skip to main content
15,891,529 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends,

i have a requirement in which there is Text file containing structure and data same as in the database.

the file should be selected from a Location and the data in file should be saved in the database Table on click of a Upload button.

Regards,
Aamir
Posted
Comments
Mohamed Mitwalli 2-Aug-12 5:43am    
What you did so far ??

1 solution

LOAD DATA INFILE 'path of file'
INTO TABLE mytable
FIELDS TERMINATED BY ';'
LINES TERMINATED BY '\n'
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900