Loading a CSV File in MySQL
Loading a CSV/Text File in MySQL Hi, In this blog, I want to say about how to load CSV/Text file in MySQL. Purpose: The purpose of Load Data Infile is loading CSV / T ext file to MySQL or any delimited data files to MySQL database. For large data which we cannot insert data by using normal insert command can be done by using Load Statement. The external files (csv/flat/text files) cannot be queried and we cannot perform any operations that we are performing on the tables in database. How to Load: Generally, after creating a table we need to populate data. This can be done by using INSERT statement or LOAD statement. We need to convert the data of flat/csv/text files into database tables which can be done by using import or by using load command. The data can be loaded by different methods and in this blog, I will explain about how data can be loaded directly from csv to MySQL database using single command. Types