|
肯定是你搞错了
LOAD DATA INFILE 'full_file_name.txt' #记得用全名
[REPLACE | IGNORE] #对重复行的处理方式, 替换还是忽略
INTO TABLE `tbl_name`
FIELDS TERMINATED BY 'string' #字段分隔符, 例如逗号 ",", 默认是制表符 "\t".
LINES TERMINATED BY 'string' #行分隔符, 例如 "\r\n", 默认是 "\n"
[IGNORE n LINES] #忽略文件开头的n行 |
|