📜  不使用任何其他软件在 MySQL 中导入数据 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:27.311000             🧑  作者: Mango

代码示例1
Convert file in .csv
CREATE TABLE (name of the table you insert data in)(
columns
);

LOAD DATA INFILE "path\\name.csv" INTO TABLE (name of the table you insert data in)
FIELDS TERMINATED BY "fields terminated by"
LINES TERMINATED BY "lines terminated by"
IGNORE (how many lines to ignore) LINES
(columns)