现在我有这样一个txt文件。格式如下
xxxxx
james 15
male i like changing the world
xxxxx
emilly 18
female i like shopping
xxxxx
……
其中xxxxx是分隔符,两个xxxxx之间的所有内容都是间隔一个TAB
请问如何将这样格式的文件到日到mysql?
我使用navicat不能正确识别出有几列
谢谢
xxxxx
james 15
male i like changing the world
xxxxx
emilly 18
female i like shopping
xxxxx
……
其中xxxxx是分隔符,两个xxxxx之间的所有内容都是间隔一个TAB
请问如何将这样格式的文件到日到mysql?
我使用navicat不能正确识别出有几列
谢谢
xxxxx
james 15
male i like changing the world
xxxxx导入到MYSQL后,是存入1个 字段,还是2个?
如:
xxxxx
james 15
male i like changing the world
xxxxx->
james 15 间隔符 male i like changing the world
再导入到MYSQL中
先把xxx都替换掉
load data local infile '/path/test.txt' into table table_name
直接导入还会在控制台界面显示 正在处理 但是一直没有响应