错误:ER_WRONG_VALUE_COUNT_ON_ROW:列数与第1行的值计数不匹配

时间:2014-07-16 05:47:01

标签: mysql sql

INSERT INTO MediaTrackInactive(MediaTrackInactiveID, PrimaryCategoryID, Title, Source, AnchorName, ProducedBy, CoverageID, Content, AudioLength, IsLead, CreationTime, UploadTime, StoryTypeID, IsPending)  
VALUES(103257 , '10', 'How does the US make the case for its interests in Ukraine?', 'NewsHour, PBS NewsHour, News', '1', 'Reporting from the Aspen Ideas Festival in Colorado, Hari Sreenivasan interviews the former American Ambassador to Russia, Michael McFaul, in a conversation focused on the crisis in Ukraine and its impact on U.S.-Russian relations.', '365', '', 1404602224000, 1404689273287, 2, 0)

尝试执行上述查询时,会出现以下错误 错误:ER_WRONG_VALUE_COUNT_ON_ROW:列数与第1行的值计数不匹配 我真的不明白自己做错了什么 感谢

2 个答案:

答案 0 :(得分:13)

您提供的价值低于您提到的价值。

您已经提到了14个列名,并且您只提供了12列的值。

答案 1 :(得分:5)

您指定的列数多于值。我想有些'丢失了。

也许在这里:'PBS NewsHour, PBS NewsHour, Rivet',