我目前正在用mysql导入一个字典,它的单词由_
分隔。我想知道如何指定单词由_
分隔。例如,话是这样:加载数据infile用“_”分隔单词
Super_Mario
Stack_Overflow
Another_Word
所以每一行随后将被存储为:
Super Mario
Stack Overflow
Another Word
我有这个疑问现在:
LOAD DATA LOCAL INFILE
C:/upload/dictionary.csv
INTO TABLE dictionary
fields terminated by ',' lines terminated by '\n'
我将不得不使用fields terminated by '_'
?
我试过ESCAPE BY'_'那个工作...但我仍然需要他们之间的空间:p – re1man