Inserting High Volumes of Data from a Text File with LOAD DATA
mysql>
mysql> CREATE TABLE sales_rep(
-> employee_number INT,
-> surname VARCHAR(40),
-> first_name VARCHAR(30),
-> commission TINYINT
-> );
Query OK, 0 rows affected (0.00 sec)
mysql>
mysql>
mysql>
mysql> LOAD DATA LOCAL INFILE "sales_rep.sql" INTO TABLE sales_rep;
mysql>
mysql> drop table sales_rep;
Query OK, 0 rows affected (0.00 sec)
mysql>
Related examples in the same category