行不包含所有列的数据 [英] Row does not contain data for all columns

查看:92
本文介绍了行不包含所有列的数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试导入包含以下内容的文本文件:

Im trying to import a text file containing:

http://pastebin.com/qhzrq3M7

使用命令

加载数据本地文件'C:/Users/Gary/Desktop/XML/jobs.txt'INTO表作业字段以'\ t'结尾;

Load data local infile 'C:/Users/Gary/Desktop/XML/jobs.txt' INTO Table jobs fields terminated by '\t';

但是我一直收到错误消息,第1-13行未包含所有列的数据

But I keep getting the error Row 1-13 doesn't contain data for all columns

推荐答案

我遇到了同样的问题.我如何解决此问题:

I faced same issue. How i fixed the issue:

  1. 尝试使用Notepad ++(文本编辑器)打开CSV文件
  2. 我在文件末尾看到一个空行,已将其删除.

-赫拉(Hurrah),它解决了我的问题.

-- Hurrah, it resolved my issue.

下面的URL还可以帮助您解决问题. http://www.thoughtspot.com/blog/5-magic-fixes-最常见的csv文件问题

Below URL also can help you out to resolve the issue. http://www.thoughtspot.com/blog/5-magic-fixes-most-common-csv-file-problems

这篇关于行不包含所有列的数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆