Answers for "how to load files in mysql"

SQL
3

mysql load sql from file

mysql> use db_name;
 mysql> source file_name.sql;
Posted by: Guest on April-29-2020
0

how to load files in mysql

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)
Posted by: Guest on January-03-2022

Code answers related to "how to load files in mysql"

Code answers related to "SQL"

Browse Popular Code Answers by Language