MYSQL#1136 - 尽管列数相等,但列数与第1行的值计数不匹配

时间:2016-04-10 10:58:46

标签: php mysql

我不断收到以下错误。列和没有。值匹配,所以我想知道有人可以帮忙吗?

INSERT INTO `user_dates` (`id`, `date`, `user_id`) VALUES(26545, '2016-04-28', 35);

我的表结构是:

CREATE TABLE `user_dates` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `date` date NOT NULL,
  `user_id` int(10) unsigned NOT NULL,
  PRIMARY KEY (`id`),
  KEY `user_dates_user_id_foreign` (`user_id`),
  CONSTRAINT `user_dates_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=10459 DEFAULT CHARSET=utf8;

0 个答案:

没有答案