mysql memuat sql dari file
mysql> use db_name;
mysql> source file_name.sql;
Friendly Hawk
mysql> use db_name;
mysql> source file_name.sql;
LOAD DATA INFILE 'c:/tmp/discounts.csv'
INTO TABLE discounts
FIELDS TERMINATED BY ','
ENCLOSED BY '"'
LINES TERMINATED BY '\n'
IGNORE 1 ROWS;
Code language: SQL (Structured Query Language) (sql)