我尝试向 MySQL 表添加记录,但不断收到语法错误。
INSERT INTO `lwljhb_lwl_matches` (id, league_seasons_id, schedule_id, playoff_round, scheduled_week_number, date_played, winner_id, loser_id, forfeit, forfeit_reason, match_begin_time, match_end_time)
VALUES (,14,,0,1,2018-04-15,52,87,0,,'14:55:00','17:41:00');
id 列是自动递增的,match_begin_time 和 match_end_time 字段是 TIME。 谁能指出我的愚蠢错误?
最佳答案
您必须为所有列指定某些内容。
INSERT INTO `lwljhb_lwl_matches` (id, ...)
VALUES (NULL, ...)
关于mysql - 具有 TIME 数据类型的 MySQL INSERT 语句中的语法错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50382985/