📜  如何将文本文件导入数据库 - 无论代码示例

📅  最后修改于: 2022-03-11 14:55:00.283000             🧑  作者: Mango

代码示例1
LOAD DATA LOCAL INFILE '/tmp/foo.txt' INTO TABLE foo
FIELDS TERMINATED BY '\t' LINES TERMINATED BY '\n'
(@col1,@col2,@col3) set myid=@col1,mydecimal=@col3;